/* Dima Livak — portfolio */
/* Self-hosted fonts (no third-party request blocking the first paint) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/geist-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #060a14;
  --bg2: #0c1322;
  --bg3: #111a2e;
  --fg: #eef3ff;
  --text: #c3cde3;
  --mute: #8391ad;
  --line: rgba(120, 160, 255, .14);
  --a1: #4f8cff;
  --a2: #7dd3fc;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--bg); color: var(--text); font: 400 17px/1.65 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { color: var(--fg); font-weight: 600; }
::selection { background: var(--a1); color: #fff; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--fg); font-family: var(--display); letter-spacing: -.02em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--a1); border-color: var(--a1); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--a2); color: var(--a2); background: transparent; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: var(--bg); border-bottom: 1px solid transparent; box-shadow: 0 0 0 transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.nav-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.logo { font: 700 19px var(--display); color: var(--fg); letter-spacing: -.01em; margin-right: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--mute); padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); background: var(--bg3); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 24px 60px; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 78% 45%, rgba(79, 140, 255, .18), transparent 70%), radial-gradient(ellipse 50% 40% at 10% 90%, rgba(125, 211, 252, .07), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.feed { animation: none; }

.feed { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(12, 19, 34, .7); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); }
.hero h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); font-weight: 700; line-height: 1; letter-spacing: -.035em; margin: 26px 0 22px; }
.role { max-width: 560px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--fg); }
.role span { color: var(--a2); }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* hero: live AI receptionist feed */
.feed { border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, rgba(79, 140, 255, .2), transparent 60%), var(--bg2); box-shadow: 0 40px 100px -40px rgba(79, 140, 255, .5); overflow: hidden; }
.feed-head, .feed-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; }
.feed-head { border-bottom: 1px solid var(--line); }
.feed-head b { color: var(--fg); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: #5ef0a0; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: ring 1.4s infinite; }
.calls { height: 330px; padding: 6px 22px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.calls li { padding: 16px 0; border-bottom: 1px solid var(--line); animation: callIn .5s var(--ease) both; }
.calls li:nth-child(n+4) { display: none; }
@keyframes callIn { from { opacity: 0; transform: translateY(-14px); } }
.who { display: flex; justify-content: space-between; font-size: 14px; }
.who b { color: var(--fg); font-weight: 600; }
.who span { font: 12px var(--mono); color: var(--mute); }
.said { margin: 6px 0 10px; min-height: 1.6em; color: var(--text); font-size: 15px; }
.calls li:not(:first-child) .said { color: var(--mute); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s var(--ease); }
.tag.on { opacity: 1; transform: none; }
.tag.ok { color: #5ef0a0; background: rgba(61, 220, 132, .12); }
.tag.info { color: var(--a2); background: rgba(125, 211, 252, .12); }
.tag.bad { color: #ff8a8a; background: rgba(255, 99, 99, .12); }
.feed-foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.feed-foot b { font: 600 20px var(--display); color: var(--fg); }

/* sections */
.sec { max-width: 1200px; margin: 0 auto; padding: 110px 24px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 48px; }
.sec-head span { font: 500 14px var(--mono); color: var(--a1); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-r].on { opacity: 1; transform: none; }

/* project cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s var(--ease), opacity .8s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--c1) 55%, transparent); }
.js .card[data-r].on:hover { transform: translateY(-4px); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; flex: 1; }
.card h3 { font-size: 1.5rem; font-weight: 600; }
.card .meta { font-size: 14px; color: var(--a2); margin-top: -8px; }
.links { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 12px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); }
.pvis {
  position: relative; height: 230px; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 60%),
              radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--c2) 26%, transparent), transparent 60%), #081020;
}
.route path { fill: none; stroke: var(--c1); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.route circle { fill: var(--c2); }

/* video previews */
.pvid { position: relative; display: block; }
.pvid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #081020; }

.demo-label { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgba(6, 10, 20, .85); color: var(--fg); border: 1px solid var(--line); }
.play {
  position: absolute; right: 14px; bottom: 14px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px;
  background: rgba(6, 10, 20, .8); color: var(--fg); border: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.pvid:hover .play, .pvid:focus-visible .play { opacity: 1; transform: none; }

/* skills film: scenes pin while scrolled; --p (0→1) and per-scene vars are set from scroll position */
.film { max-width: 1200px; margin: 0 auto; padding: 40px 24px 0; }
.film-intro { padding-top: 60px; }
.film-intro .sec-head { margin-bottom: 10px; }
.film-intro p { color: var(--mute); }
.scene { height: 260vh; }
.pin { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.chapter { font: 500 13px var(--mono); color: var(--a2); }
.scene-text h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin: 12px 0 16px; }
.scene-text p { max-width: 460px; margin-bottom: 20px; }
.stage { position: relative; padding: 28px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(79, 140, 255, .45); }
.stage::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--a1), var(--a2)); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--a2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.result {
  margin-top: 22px; padding: 12px 16px; border-radius: 12px; font-weight: 600; color: #5ef0a0; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35);
  opacity: var(--r, 0); transform: translateY(calc((1 - var(--r, 0)) * 14px));
}

/* scene 1: call */
.ring { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg3); }
.ring b { color: var(--fg); font-weight: 600; }
.ring span { margin-left: auto; font: 400 13px var(--mono); color: var(--mute); }
.ring-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; animation: ring 1.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 12px transparent; } }
.transcript { min-height: 5em; margin: 22px 0 12px; font-size: 17px; line-height: 1.6; color: var(--fg); }
.scores div { display: grid; grid-template-columns: 80px 1fr 48px; align-items: center; gap: 12px; margin: 10px 0; font-size: 14px; }
.scores i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--a1), var(--a2)) 0 0 / calc(var(--to) * var(--s, 0) * 100%) 100% no-repeat, rgba(255, 255, 255, .07); }
.scores em { font: normal 13px var(--mono); text-align: right; color: var(--fg); }

/* scene 2: email */
.mail-in { padding: 16px 18px; border-radius: 12px; background: var(--bg3); opacity: var(--m, 0); transform: translateX(calc((1 - var(--m, 0)) * 40px)); }
.mail-in b { color: var(--fg); }
.mail-in span { display: block; font-size: 13px; color: var(--mute); }
.mail-in p { margin-top: 8px; }
.mail-out { min-height: 10em; margin-top: 16px; padding: 16px 18px; border-radius: 12px; border: 1px dashed rgba(125, 211, 252, .4); color: var(--fg); }
.mail-label { display: block; margin-bottom: 6px; font: 500 12px var(--mono); color: var(--a2); }

/* scene 3: ml */
.code { margin: 0; padding: 18px 20px; border-radius: 12px; background: #050811; font: 13.5px/1.75 var(--mono); color: var(--text); overflow-x: auto; }
.ln { display: block; opacity: .12; transition: opacity .25s; white-space: pre; }
.ln.on { opacity: 1; }
.code b { color: #c4a7ff; font-weight: 500; }
.chart { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--bg3); }
.chart svg { display: block; width: 100%; height: 110px; }
.loss { fill: none; stroke: var(--a2); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--l, 1); }
.metrics { display: flex; gap: 32px; margin-top: 10px; font: 12px var(--mono); color: var(--mute); }
.metrics b { display: block; font: 600 22px var(--display); color: var(--fg); }

/* scene 4: web */
/* web scene (mock site) styles are further down, under "Skills film, scene 4" */

/* scene 5: languages */
.words { position: relative; height: 1.25em; font: 700 clamp(3rem, 6vw, 5rem)/1.2 var(--display); color: var(--fg); letter-spacing: -.03em; }
.words span { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s var(--ease); }
.words span.on { opacity: 1; transform: none; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.lang-list span { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--mute); font-size: 14px; transition: color .3s, border-color .3s, background .3s; }
.lang-list span.on { color: var(--fg); border-color: var(--a1); background: var(--bg3); }

/* contact */
.contact-card { padding: clamp(32px, 5vw, 64px); border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, rgba(79, 140, 255, .22), transparent 60%), var(--bg2); }
.contact-card h3 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; }
.contact-card > p { margin-top: 12px; max-width: 520px; }
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; font-size: 15px; color: var(--mute); }
.contact-links a:hover { color: var(--fg); }
.footer { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; padding: 28px 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.footer a:hover { color: var(--fg); }

/* responsive */
@media (max-width: 960px) {
  .nav-cv { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  
  
  
  
  .scene { height: 230vh; }
  .pin { grid-template-columns: 1fr; gap: 16px; align-content: center; }
  .scene-text p, .scene-text .tags { display: none; }
  .scene-text h3 { margin: 6px 0 0; font-size: 1.6rem; }
  .stage { padding: 20px; }
  .transcript { font-size: 15px; min-height: 6.5em; }

  .sec { padding: 80px 20px; }
  
  
  .calls { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Aurora colours: two accent colours (as RGB) plus their light tints and background glows */
:root { --acc: 139, 123, 255; --acc2: 94, 234, 212; --glow1: 124, 58, 237; --glow2: 20, 184, 166; --soft: #c4b5fd; --mid: #93c5fd; --soft2: #5eead4; }
/* =====================================================================
   2026 theme layer — glass, aurora, gradient accents. Overrides the base
   styles above without changing layout. Cheap effects only: gradients,
   opacity and transform (no blur filters or blend modes on scroll).
   ===================================================================== */
:root {
  --bg: #050508;
  --bg2: rgba(255, 255, 255, .035);
  --bg3: rgba(255, 255, 255, .06);
  --fg: #fafafa;
  --text: #b4b4c0;
  --mute: #9696a6;
  --line: rgba(255, 255, 255, .08);
  --a1: rgb(var(--acc));
  --a2: var(--soft2);
  --a3: var(--mid);
  --sheen: linear-gradient(100deg, var(--soft) 0%, var(--mid) 45%, var(--soft2) 100%);
  --edge: linear-gradient(140deg, rgba(var(--acc), .45), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .04) 62%, rgba(var(--acc2), .35));
  --display: "Geist", "Inter", system-ui, sans-serif;
  --nav-h: 88px;
}
html { background: var(--bg); }
body { background: transparent; font-family: "Geist", "Inter", system-ui, sans-serif; letter-spacing: -.005em; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; }
h1 em, h2 em, h3 em {
  font: inherit; font-style: normal; letter-spacing: inherit;
  background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent;
}
::selection { background: rgba(var(--acc), .6); }

/* background: slow aurora + fine grain (fixed, behind everything) */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.aurora::before { top: -35vmax; right: -20vmax; background: radial-gradient(circle, rgba(var(--glow1), .28), transparent 62%); animation: drift-a 26s ease-in-out 3s infinite alternate; }
.aurora::after { bottom: -40vmax; left: -25vmax; background: radial-gradient(circle, rgba(var(--glow2), .16), transparent 62%); animation: drift-b 32s ease-in-out 3s infinite alternate; }
@keyframes drift-a { to { transform: translate(-14vmax, 18vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(16vmax, -12vmax) scale(1.1); } }

/* floating glass pill nav */
.nav { height: auto; background: transparent; border: 0 !important; box-shadow: none !important; padding: 14px 16px 0; }
.nav-inner {
  position: relative; max-width: 1040px; height: 60px; padding: 0 10px 0 22px; border-radius: 99px;
  background: rgba(13, 13, 21, .88); border: 1px solid var(--line); box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled .nav-inner { background: rgba(10, 10, 16, .82); box-shadow: 0 16px 50px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(var(--acc), .12); }
.logo { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
.nav-links a { border-radius: 99px; }
.nav-links a.active { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); }

/* buttons: pills with a light sweep */
.btn { position: relative; overflow: hidden; border-radius: 99px; border-color: transparent; background: var(--fg); color: #0a0a0f; box-shadow: 0 10px 30px -12px rgba(var(--acc), .55); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.btn:hover { background: var(--fg); color: #0a0a0f; border-color: transparent; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(var(--acc), .8); }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); color: var(--fg); border-color: rgba(255, 255, 255, .18); }

/* glass panels with a gradient edge and a mouse-following spotlight */
.card, .feed, .stage, .contact-card, .tile {
  position: relative; border: 1px solid transparent !important;
  background: linear-gradient(rgba(16, 16, 26, .78), rgba(12, 12, 20, .78)) padding-box, var(--edge) border-box !important;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--acc), .13), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.card > *, .contact-card > * { position: relative; z-index: 1; }
.card:hover { border-color: transparent !important; }

/* hero */
.hero { background: none; }
.hero::after { display: none; }
.hero h1 {
  font-size: clamp(3.6rem, 9vw, 7.4rem); font-weight: 700; letter-spacing: -.055em; line-height: .95; padding-bottom: .06em;
  background: linear-gradient(180deg, #ffffff 35%, var(--soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role { color: var(--text); }
.role span { font-weight: 500; background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.feed { border-radius: 24px; }
.feed-head, .feed-foot { border-color: var(--line); }

/* section headings */
.sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 52px; }
.sec-head span {
  font: 500 12px var(--mono); letter-spacing: .12em; color: var(--soft); padding: 6px 12px; border-radius: 99px;
  background: rgba(var(--acc), .1); border: 1px solid rgba(var(--acc), .25);
}
.sec-head span::before { content: "— "; opacity: .6; }
.sec-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 600; line-height: 1.02; }
.film-intro p { font-size: 17px; }

/* skills film */
.chapter { color: var(--soft); letter-spacing: .04em; }
.scene-text h3 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 600; letter-spacing: -.045em; }
.stage { border-radius: 24px; }
.stage::before { background: var(--sheen); }
.ring, .mail-in, .chart, .lang-list span.on { background: rgba(255, 255, 255, .045) !important; }
.code { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.scores i { background: var(--sheen) 0 0 / calc(var(--to) * var(--s, 0) * 100%) 100% no-repeat, rgba(255, 255, 255, .07); }
.loss { stroke: var(--mid); }

/* projects */
.card { border-radius: 22px; }
.card h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; }
.card .meta { color: var(--soft); }
.pvis { border-color: var(--line); }
.tags li { background: rgba(255, 255, 255, .04); border-color: var(--line); border-radius: 99px; }
.demo-label { background: rgba(8, 8, 14, .82); }

/* contact */
.contact-card { border-radius: 28px; padding: clamp(36px, 6vw, 80px); overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc), .35), transparent 65%); pointer-events: none; }
.contact-card h3 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }

/* footer wordmark */
.footer { display: block; border-top: 1px solid var(--line); padding-top: 40px; overflow: hidden; }
.wordmark {
  font: 600 clamp(4rem, 15vw, 13rem)/.85 var(--display); letter-spacing: -.06em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; user-select: none;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav { padding: 10px 10px 0; }
  .nav-inner { height: 56px; padding: 0 8px 0 18px; }
  .nav-links { top: calc(100% + 8px); left: 0; right: 0; border-radius: 22px; border: 1px solid var(--line); background: #0c0c14 !important; box-shadow: 0 24px 60px -20px #000; }
}

/* Sections added in the 2026 redesign: bento hero, featured projects, filterable grid,
   journey timeline, process steps and the big contact panel. Loaded after style.css. */

/* ---------- Bento hero ---------- */
.hero { min-height: auto; display: block; padding: calc(var(--nav-h) + 28px) 24px 40px; }
.bento { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: 26px; padding: 26px; min-width: 0; overflow: hidden; }
.t-intro { grid-column: span 7; grid-row: span 3; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.t-feed { grid-column: span 5; grid-row: span 3; }
.t-mini { grid-column: span 3; display: flex; flex-direction: column; gap: 4px; }
.t-stack { grid-column: span 12; padding: 18px 0; }
.t-intro .status { align-self: flex-start; }
.t-intro h1 { font-size: clamp(3.2rem, 6.6vw, 6.2rem); margin: 22px 0 18px; }
.t-intro .role { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 540px; }
.t-intro .cta { margin-top: 30px; }
.t-label { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.t-big { font: 700 clamp(2.4rem, 4vw, 3.2rem)/1.05 var(--display); letter-spacing: -.05em; color: var(--fg); margin-top: 6px; font-variant-numeric: tabular-nums; }
.t-mid { font: 600 1.15rem/1.3 var(--display); letter-spacing: -.02em; margin-top: 8px; }
.t-mini small { color: var(--mute); font-size: 13.5px; line-height: 1.45; margin-top: auto; padding-top: 8px; }
.t-clock .t-big { background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.langs li { font-size: 13px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--fg); }
.langs li:first-child { border-color: rgba(var(--acc), .45); background: rgba(var(--acc), .12); }
.t-feed .calls { height: 300px; }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 1.05rem var(--display); color: var(--text); white-space: nowrap; letter-spacing: -.01em; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sheen); }
.t-stack:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Featured projects ---------- */
.features { display: grid; gap: 28px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: 28px 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  border: 1px solid transparent; background: linear-gradient(#0c0c14, #0c0c14) padding-box, var(--edge) border-box;
  box-shadow: 0 40px 100px -40px rgba(var(--acc), .45); transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s;
}
.feature-media:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 50px 120px -40px rgba(var(--acc), .7); }
.feature-media video { object-fit: cover; object-position: top left; }
.feature-n { display: block; font: 700 clamp(3.5rem, 6vw, 5.5rem)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .45); margin-bottom: 10px; }
.feature-body .meta { color: var(--soft); font-size: 14px; font-weight: 500; }
.feature-body h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -.045em; margin: 6px 0 14px; }
.feature-body > p:not(.meta) { font-size: 16.5px; line-height: 1.7; }
.feature-body .tags { margin: 18px 0 22px; }
.feature-body .links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- More projects: filters + grid ---------- */
.more-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 80px 0 24px; }
.more-head h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.035em; }
.more-head small { font-size: 15px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.filters button { padding: 8px 16px; border: 0; border-radius: 99px; background: none; color: var(--mute); font: 600 14px var(--display); cursor: pointer; transition: color .2s, background .2s; }
.filters button:hover { color: var(--fg); }
.filters button.on { background: var(--fg); color: #0a0a0f; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mini { border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.mini:hover { transform: translateY(-4px); }
.mini .pvis { height: 200px; }
.mini .card-body { padding: 20px 22px 22px; gap: 10px; }
.mini h3 { font-size: 1.2rem !important; }
.mini p { font-size: 14.5px; line-height: 1.55; }
.mini.hide { display: none; }

/* ---------- Journey timeline ---------- */
.timeline { position: relative; max-width: 1060px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; transform: translateX(-50%); background: var(--line); border-radius: 2px; }
.tl-line i { display: block; width: 100%; height: calc(var(--fill, 0) * 100%); border-radius: 2px; background: linear-gradient(180deg, var(--soft), var(--mid) 50%, var(--soft2)); box-shadow: 0 0 14px rgba(var(--acc), .7); }
.tl-item { position: relative; width: 50%; padding: 0 48px 34px 0; }
.tl-item:nth-of-type(even) { margin-left: 50%; padding: 0 0 34px 48px; }
.tl-dot { position: absolute; top: 26px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: #0c0c14; border: 2px solid rgba(255, 255, 255, .25); transition: border-color .5s, box-shadow .5s; z-index: 1; }
.tl-item:nth-of-type(even) .tl-dot { right: auto; left: -8px; }
.tl-item.on .tl-dot { border-color: var(--soft); box-shadow: 0 0 0 5px rgba(var(--acc), .18), 0 0 18px rgba(var(--acc), .8); }
.tl-card {
  padding: 24px 26px; border-radius: 20px; border: 1px solid transparent;
  background: linear-gradient(rgba(16, 16, 26, .8), rgba(12, 12, 20, .8)) padding-box, var(--edge) border-box;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.tl-card:hover { transform: translateY(-3px); }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tl-date { font: 500 12.5px var(--mono); color: var(--mute); }
.tl-kind { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.tl-kind.work { color: var(--soft); background: rgba(var(--acc), .14); }
.tl-kind.study { color: var(--soft2); background: rgba(var(--acc2), .12); }
.tl-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.tl-org { color: var(--mid); font-size: 14px; margin: 4px 0 10px; }
.tl-card p:last-child { font-size: 15px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px 24px; border-radius: 22px; }
.step-n { font: 500 12px var(--mono); color: var(--mute); }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 18px 0 18px; border-radius: 16px; font-size: 24px; background: linear-gradient(135deg, rgba(var(--acc), .25), rgba(var(--acc2), .12)); border: 1px solid rgba(var(--acc), .3); }
.step h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-big { text-align: center; padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px) !important; }
.contact-big::after { left: 50%; right: auto; top: -300px; transform: translateX(-50%); width: 760px; height: 600px; }
.sec-label { display: inline-block; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 6px 12px; border-radius: 99px; background: rgba(var(--acc), .1); border: 1px solid rgba(var(--acc), .25); }
.contact-big h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.04; margin: 24px auto 18px; max-width: 900px; }
.contact-big > p { max-width: 560px; margin: 0 auto; font-size: 17px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn.copy { gap: 12px; padding-right: 8px; }
.copy-tag { padding: 5px 12px; border-radius: 99px; background: #0a0a0f; color: var(--fg); font-size: 12.5px; transition: background .3s; }
.btn.copy.copied .copy-tag { background: #16a34a; color: #fff; }
.contact-big .contact-links { justify-content: center; margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .t-intro, .t-feed { grid-column: span 12; grid-row: auto; }
  .t-mini { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { padding: calc(var(--nav-h) + 12px) 14px 24px; }
  .bento { gap: 12px; }
  .t-mini { grid-column: span 6; padding: 18px; }
  .t-big { font-size: 2rem; }
  .feature { grid-template-columns: 1fr; gap: 22px; padding: 10px 0 30px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .mini-grid, .steps { grid-template-columns: 1fr; }
  .filters { overflow-x: auto; max-width: 100%; }
  .tl-line { left: 15px; }
  .tl-item, .tl-item:nth-of-type(even) { width: 100%; margin-left: 0; padding: 0 0 26px 44px; }
  .tl-dot, .tl-item:nth-of-type(even) .tl-dot { left: 7px; right: auto; }
}

/* ---------- Skills film, scene 4: a mock estate agency site that builds itself ---------- */
.win { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b0b12; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.url { margin-left: 10px; flex: 1; max-width: 330px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); font: 400 11px var(--mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site { display: grid; gap: 10px; padding: 14px; }
.b { border: 1.5px dashed rgba(var(--acc), .4); border-radius: 10px; opacity: 0; transform: translateY(14px) scale(.98); color: var(--mute);
  transition: opacity .35s, transform .45s cubic-bezier(.16, 1, .3, 1), background .6s, border-color .6s, color .6s; }
.b.on { opacity: 1; transform: none; }
.b-nav { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 12px; }
.b-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.b-logo em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px dashed currentColor; font: 700 9px var(--display); font-style: normal; }
.b-links { display: flex; gap: 12px; margin-left: auto; }
.b-links i { font-style: normal; }
.b-btn { padding: 5px 12px; border-radius: 99px; border: 1px dashed currentColor; }
.b-hero { padding: 22px 20px; display: grid; gap: 8px; }
.b-hero small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.b-hero b { font: 700 1.45rem/1.15 var(--display); letter-spacing: -.03em; color: inherit; max-width: 320px; }
.b-search { display: flex; gap: 6px; margin-top: 6px; padding: 6px; border-radius: 10px; border: 1px dashed currentColor; font-size: 11.5px; }
.b-search span { flex: 1; padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-search em { font-style: normal; font-weight: 600; padding: 6px 14px; border-radius: 6px; border: 1px dashed currentColor; }
.b-title { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 12px; font-size: 12px; }
.b-title b { font: 700 14px var(--display); color: inherit; }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b-card { padding: 8px; display: grid; gap: 3px; font-size: 11.5px; }
.b-card b { font: 700 14px var(--display); color: inherit; margin-top: 4px; }
.b-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-card small { font-size: 10.5px; opacity: .8; }
.b-photo { position: relative; height: 74px; border-radius: 7px; border: 1px dashed currentColor; }
.b-photo em { position: absolute; left: 6px; top: 6px; font: 600 9.5px var(--display); font-style: normal; padding: 2px 7px; border-radius: 99px; border: 1px dashed currentColor; }
.b-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 11.5px; }

/* finished state: the wireframe turns into the real design */
.site.styled .b { border-color: transparent; background: rgba(255, 255, 255, .045); color: var(--text); }
.site.styled .b-logo, .site.styled .b-title b, .site.styled .b-card b { color: var(--fg); }
.site.styled .b-logo em { border: 0; background: linear-gradient(135deg, rgb(var(--acc)), rgb(var(--acc2))); color: #fff; }
.site.styled .b-btn { border: 0; background: var(--fg); color: #0a0a0f; font-weight: 600; }
.site.styled .b-hero { background: radial-gradient(ellipse at 85% 0%, rgba(var(--acc), .45), transparent 60%), linear-gradient(135deg, #18182a, #0f1220); }
.site.styled .b-hero b { color: #fff; }
.site.styled .b-hero small { color: var(--soft); }
.site.styled .b-search { border: 0; background: rgba(255, 255, 255, .92); color: #333; }
.site.styled .b-search span { background: #f1f1f4; }
.site.styled .b-search em { border: 0; background: linear-gradient(135deg, rgb(var(--acc)), rgb(var(--acc2))); color: #fff; }
.site.styled .b-photo { border: 0; }
.site.styled .b-photo.p1 { background: linear-gradient(180deg, #9cc3e6 0 45%, #6b8f5a 45% 58%, #c9a27e 58%); }
.site.styled .b-photo.p2 { background: linear-gradient(180deg, #f2c48d 0 40%, #8a8fa3 40% 70%, #5b6378 70%); }
.site.styled .b-photo.p3 { background: linear-gradient(180deg, #a7c7e7 0 50%, #e8e2d4 50% 72%, #5f8a52 72%); }
.site.styled .b-photo em { border: 0; background: rgba(0, 0, 0, .55); color: #fff; }
.site.styled .b-foot { background: rgba(var(--acc2), .12); color: var(--soft2); font-weight: 600; }
.site.styled .b-foot span + span { color: var(--mute); font-weight: 400; }
@media (max-width: 760px) {
  .b-links, .b-search span:nth-child(n+2), .b-card small, .b-foot span + span { display: none; }
  .b-hero { padding: 14px; } .b-hero b { font-size: 1.1rem; }
  .b-photo { height: 46px; } .b-card { font-size: 10px; }
}

/* Performance: keep animated areas from re-laying-out the whole page, and skip rendering
   below-the-fold sections until they are near the screen. */
.feed, .stage, .calls { contain: layout paint; }
.sec { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* Talk to Jack — live Vapi demo */
.talk-jack { margin: 4px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(79, 140, 255, .06); }
.tj-btn { gap: 10px; }
.tj-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); }
.tj-btn[data-state="connecting"] .tj-dot { background: #f59e0b; }
.tj-btn[data-state="live"] .tj-dot { background: #ef4444; animation: tj-pulse 1.4s infinite; }
@keyframes tj-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.tj-note { margin-top: 10px; font-size: 14px; color: var(--mute); }
.tj-status { margin-top: 6px; min-height: 1.4em; font: 500 13px/1.4 var(--mono); color: var(--a2); }
@media (prefers-reduced-motion: reduce) { .tj-btn[data-state="live"] .tj-dot { animation: none; } }

/* Jack live demo: hero feed link + floating button */
.feed-try { display: block; padding: 12px 22px 16px; font-size: 14px; font-weight: 600; color: var(--a2); border-top: 1px solid var(--line); }
.feed-try:hover { color: var(--fg); }
.jack-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .6); transition: transform .2s, background .2s, color .2s; }
.jack-fab:hover { transform: translateY(-2px); background: var(--a1); color: #fff; }
.jf-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; animation: jf-pulse 1.8s infinite; }
@keyframes jf-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@media (max-width: 560px) { .jack-fab { right: 16px; bottom: 16px; left: 16px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .jf-dot { animation: none; } }
