/* =========================================================
   Turkesh Amirbayli — Portfolio
   Modes: F (Sci-Fi HUD hero) · G (Blueprint case studies) · C (Clean-tech)
   ========================================================= */
:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --line: rgba(255, 255, 255, .09);
  --text: #eceae4;
  --muted: #9a9ba3;
  --gold: #f2b54a;
  --gold-2: #ffd98a;
  --ice: #7fd6ff;
  --paper: #f3efe6;
  --ink: #0d0d10;
  --royal: #2346ff;
  --radius: 18px;
  --sans: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.serif { font-family: var(--serif); font-weight: 400; }
em.serif { font-style: italic; color: var(--gold-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.kicker { font-size: 12px; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.h2 {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
  margin: 0 0 28px;
}
.h2 em.serif { font-weight: 400; letter-spacing: -.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: #120d02; box-shadow: 0 10px 40px -10px rgba(242,181,74,.6); }
.btn--primary:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255,255,255,.22); color: var(--text); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(18px, 3vw, 40px);
  transition: background .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7,8,12,.72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); padding-block: 12px; }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-family: var(--serif); font-size: 18px; color: var(--gold-2);
  border: 1px solid rgba(242,181,74,.5);
  box-shadow: 0 0 24px -4px rgba(242,181,74,.5) inset, 0 0 18px -6px rgba(242,181,74,.6);
}
.nav__name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.03); }
.lang button {
  font: 500 12px var(--mono); letter-spacing: .08em; color: var(--muted);
  background: transparent; border: 0; padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: #120d02; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0; }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 4px auto; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: center; padding: 120px 0 80px;
  background: var(--bg);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 78% 45%, rgba(242,181,74,.13), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(127,214,255,.06), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask: radial-gradient(120% 100% at 60% 40%, #000 40%, transparent 85%);
          mask: radial-gradient(120% 100% at 60% 40%, #000 40%, transparent 85%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__content { position: relative; }
.hero__title { margin: 0 0 24px; line-height: .9; letter-spacing: -.05em; }
.hero__title .serif { display: block; font-size: clamp(52px, 7.6vw, 118px); font-style: italic; color: var(--gold-2); letter-spacing: -.02em; }
.hero__title-last { display: block; font-size: clamp(50px, 8vw, 124px); font-weight: 900; }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: #cfccc4; max-width: 560px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__status { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #b9b6ad; text-transform: uppercase; margin: 0; line-height: 1.5; }
.pulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #5be58f; box-shadow: 0 0 10px #5be58f; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Pillar cards */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar {
  position: relative; border-radius: 18px; padding: 20px 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .3s;
}
.hero.is-ready .pillar { opacity: 1; transform: none; }
.hero.is-ready .pillar--ops { transition-delay: .12s; }
.hero.is-ready .pillar--ai { transition-delay: .24s; }
.pillar:hover { border-color: rgba(242,181,74,.35); }
.pillar--sales { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.pillar--ai { grid-column: 2; }
.pillar header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pillar header span { font-size: 10px; color: var(--gold); }
.pillar--ops header span { color: var(--ice); }
.pillar--ai header span { color: #8cf0b0; }
.pillar header i { font: 500 10px var(--mono); color: var(--muted); font-style: normal; }
.pillar__big { display: flex; flex-direction: column; gap: 6px; }
.pillar__num { font-size: clamp(64px, 6.6vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: .9; background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar__big small { font-size: 14px; color: #c9c6be; line-height: 1.35; }
.pillar__bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.pillar__bars i { flex: 1; height: 0; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--gold-2), rgba(242,181,74,.25)); transition: height 1.2s var(--ease); }
.hero.is-ready .pillar__bars i { height: var(--h); }
.pillar__bars i:nth-child(n+7) { transition-delay: .15s; }
.pillar__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 10px; text-transform: uppercase; }
.pillar__tags li { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(242,181,74,.35); color: var(--gold-2); }
.pillar__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pillar__rows li { display: grid; grid-template-columns: 108px 1fr; gap: 10px; align-items: baseline; }
.pillar__rows b { font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
.pillar__rows span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pillar__flow { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 4px; font-size: 10px; text-transform: uppercase; }
.pillar__flow li { flex: 1; text-align: center; padding: 8px 2px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: .35s; }
.pillar__flow li.is-done { border-color: rgba(140,240,176,.35); color: #8cf0b0; }
.pillar__flow li.is-on { border-color: #8cf0b0; color: #04140a; background: #8cf0b0; box-shadow: 0 0 18px -4px rgba(140,240,176,.7); }
.pillar__foot { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Facts list (profile) */
.facts { margin: 46px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 10px; color: var(--gold); padding-top: 4px; }
.facts dd { margin: 0; font-size: 16px; color: var(--text); }

/* Challenge / Approach / Outcome */
.cao { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1px; background: rgba(13,13,16,.12); border: 1px solid rgba(13,13,16,.12); border-radius: 16px; overflow: hidden; margin: 6px 0 30px; }
.cao > div { background: rgba(255,255,255,.55); padding: 20px 22px; }
.cao span { display: block; font-size: 10px; color: var(--royal); margin-bottom: 8px; }
.cao p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #26262c; }
.cao > div:last-child { background: rgba(35,70,255,.06); }
.cao > div:last-child p { color: var(--ink); font-weight: 600; }

/* Unity + GitHub demo */
.dev { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 340px; }
.dev__editor { background: #0d0f16; border-right: 1px solid var(--line); overflow: hidden; }
.dev__tab { display: inline-block; font-size: 11px; padding: 10px 16px; color: var(--text); background: #151824; border-right: 1px solid var(--line); border-bottom: 2px solid var(--ice); letter-spacing: .04em; }
.dev pre { margin: 0; padding: 18px 20px; font: 12.5px/1.75 var(--mono); color: #c9cfdb; white-space: pre; overflow-x: auto; }
.dev .k { color: #c792ea; } .dev .t { color: #7fd6ff; } .dev .f { color: #ffd98a; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--ice); vertical-align: -3px; margin-left: 2px; animation: pulse 1s steps(1) infinite; }
.dev__git { padding: 16px 18px; background: #0a0c12; }
.dev__git-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dev__git-head b { font-weight: 500; color: #8cf0b0; border: 1px solid rgba(140,240,176,.35); border-radius: 999px; padding: 3px 10px; }
.dev__commits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; letter-spacing: .02em; }
.dev__commits li { display: grid; grid-template-columns: 62px auto 1fr; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; animation: lnIn .45s var(--ease); }
.c-hash { color: #5d6070; }
.c-type { padding: 2px 7px; border-radius: 6px; font-size: 10px; background: rgba(127,214,255,.12); color: var(--ice); }
.c-feat { background: rgba(140,240,176,.12); color: #8cf0b0; }
.c-fix { background: rgba(255,120,120,.12); color: #ff9a9a; }
.c-art { background: rgba(199,146,234,.14); color: #d7b3f0; }
.c-data { background: rgba(242,181,74,.14); color: var(--gold-2); }
.c-msg { color: #d6d3cb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln__n { color: #5d6070; }

/* Skills: wide group */
.skill-group--wide { grid-column: span 2; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker__track { display: flex; gap: 28px; width: max-content; padding: 16px 0; font-size: 13px; text-transform: uppercase; color: #bdb9ae; animation: marquee 40s linear infinite; }
.ticker__track span:nth-child(even) { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 13vw, 170px) 0; position: relative; }
.section--dark { background: var(--bg); }
.section--alt { background: var(--bg-2); }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__text p { color: #c9c6be; margin: 0 0 18px; max-width: 600px; }
.about__text .about__punch { font-size: 20px; color: var(--text); border-left: 2px solid var(--gold); padding-left: 16px; }
.about__punch b { font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 46px; }
.stat { background: var(--bg); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 170px; justify-content: space-between; transition: background .3s; }
.stat:hover { background: #0f0d09; }
.stat__val { font-size: clamp(38px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* ---------- Work (Mode G) ---------- */
.section--paper {
  background-color: var(--paper); color: var(--ink);
  background-image:
    linear-gradient(rgba(35,70,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,70,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(35,70,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,70,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.section--paper .kicker { color: var(--royal); }
.h2--ink em.serif { color: var(--royal); }
.work__intro { max-width: 640px; color: #3a3a40; font-size: 19px; margin: 0; }
.work__head { margin-bottom: clamp(60px, 8vw, 110px); }

.case { margin-bottom: clamp(90px, 12vw, 150px); }
.case:last-child { margin-bottom: 0; }
.case__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: end; margin-bottom: 22px; }
.case__num { font-size: clamp(90px, 14vw, 190px); line-height: .78; color: var(--royal); letter-spacing: -.04em; }
.case__kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #4a4a52; margin: 0 0 14px; text-transform: uppercase; }
.play { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.case__title { font-size: clamp(36px, 5.6vw, 78px); font-weight: 900; letter-spacing: -.055em; line-height: .95; margin: 0; }
.case__body { max-width: 760px; font-size: 18px; color: #2d2d33; margin: 0 0 34px; }

.demo {
  border-radius: 22px; overflow: hidden; background: #0b0c12; color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(13,13,30,.45), 0 0 0 1px rgba(13,13,16,.08);
  margin-bottom: 22px;
}
.demo__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); text-transform: lowercase; }
.demo__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2c36; }
.demo__bar .dot:nth-child(1) { background: #ff5f57; } .demo__bar .dot:nth-child(2) { background: #febc2e; } .demo__bar .dot:nth-child(3) { background: #28c840; margin-right: 10px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: flex; flex-direction: column; gap: 2px; background: #e5e3f3; border-radius: 16px; padding: 10px 18px; }
.chips span { font-size: 10px; color: var(--royal); }
.chips b { font-size: 16px; letter-spacing: -.02em; }

/* Pipeline demo */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 34px 26px 20px; }
.pipeline::before { content: ""; position: absolute; left: 7%; right: 7%; top: 74px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,181,74,.5), transparent); }
.agent {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px; transition: background .4s, transform .4s var(--ease);
}
.agent i {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-style: normal; font-size: 20px;
  background: #11131b; border: 1px solid rgba(255,255,255,.12); color: var(--muted); transition: .4s;
}
.agent b { font-size: 14px; letter-spacing: -.01em; }
.agent small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.agent.is-active { transform: translateY(-4px); background: rgba(242,181,74,.06); }
.agent.is-active i { border-color: var(--gold); color: var(--gold-2); box-shadow: 0 0 0 6px rgba(242,181,74,.08), 0 0 30px rgba(242,181,74,.45); }
.agent.is-done i { border-color: rgba(140,240,176,.6); color: #8cf0b0; }
.console { margin: 0 26px 24px; padding: 14px 16px; height: 128px; overflow: hidden; border-radius: 12px; background: #06070b; border: 1px solid var(--line); font-size: 12px; line-height: 1.75; color: #b6b3aa; display: flex; flex-direction: column; justify-content: flex-end; letter-spacing: .02em; }
.console .ln { animation: lnIn .35s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.console .ln b { color: var(--gold-2); font-weight: 500; }
.console .ln .ok { color: #8cf0b0; }
@keyframes lnIn { from { opacity: 0; transform: translateY(6px); } }

/* Studio demo */
.studio { display: grid; grid-template-columns: 300px 1fr; min-height: 380px; }
.studio__side { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: #0e1017; }
.studio__side label { font-size: 10px; color: var(--muted); margin-top: 8px; }
.studio__select { padding: 10px 14px; border-radius: 10px; background: #161924; border: 1px solid var(--line); font-size: 14px; position: relative; transition: border-color .3s; }
.studio__select::after { content: "▾"; position: absolute; right: 12px; color: var(--muted); }
.studio__select.flash { border-color: var(--ice); }
.studio__hooks { display: flex; flex-direction: column; gap: 6px; }
.studio__hooks span { font-size: 13px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: .3s; }
.studio__hooks span.on { border-color: var(--ice); color: var(--text); background: rgba(127,214,255,.08); }
.studio__voice { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #161924; font-size: 13px; }
.studio__voice b { font-weight: 500; }
.wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.wave i { width: 3px; height: 30%; background: var(--ice); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.15s; }
@keyframes wave { 50% { height: 100%; } }
.studio__go { margin-top: auto; position: relative; overflow: hidden; border-radius: 12px; padding: 12px; text-align: center; background: var(--ice); color: #03121b; font-weight: 700; font-size: 14px; }
.studio__progress { position: absolute; left: 0; bottom: 0; right: 0; height: 3px; background: rgba(0,0,0,.15); }
.studio__progress i { display: block; height: 100%; width: 0; background: #03121b; }
.studio__out { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 240px) minmax(0, 200px); justify-content: center; gap: 20px; padding: 24px; align-items: center; }
.post {
  position: relative; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 9 / 16; overflow: hidden; transform: translateY(14px) scale(.96); opacity: .25; transition: transform .6s var(--ease), opacity .6s;
  background: linear-gradient(160deg, #1f2c55, #0d1222 60%); border: 1px solid rgba(255,255,255,.08);
}
.post.p2 { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #3a2a0e, #120d06 65%); }
.post.p3 { background: linear-gradient(160deg, #123c3a, #071514 65%); }
.post::before { content: ""; position: absolute; inset: auto -30% -30% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.post span { font-size: 9px; color: rgba(255,255,255,.6); }
.post b { font-size: clamp(13px, 1.5vw, 19px); line-height: 1.15; letter-spacing: -.02em; position: relative; }
.post.show { transform: none; opacity: 1; }

/* Game demo */

/* Ops demo */
.ops { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 30px; align-items: center; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel__row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 13px; color: #c9c6be; }
.funnel__row i { display: block; height: 22px; border-radius: 6px; width: 0; background: linear-gradient(90deg, var(--gold), #ff8b3d); transition: width 1.3s var(--ease); box-shadow: 0 0 20px -6px rgba(242,181,74,.7); }
.funnel__row:nth-child(2) i { transition-delay: .12s; } .funnel__row:nth-child(3) i { transition-delay: .24s; } .funnel__row:nth-child(4) i { transition-delay: .36s; } .funnel__row:nth-child(5) i { transition-delay: .48s; }
.demo.in-view .funnel__row i { width: var(--w); }
.gauge { text-align: center; position: relative; }
.gauge svg { width: 100%; max-width: 200px; margin: 0 auto; }
.gauge__bg, .gauge__fg { fill: none; stroke-width: 8; stroke-linecap: round; }
.gauge__bg { stroke: #1d2030; }
.gauge__fg { stroke: #8cf0b0; stroke-dasharray: 158; stroke-dashoffset: 158; transition: stroke-dashoffset 1.6s var(--ease) .2s; filter: drop-shadow(0 0 6px rgba(140,240,176,.6)); }
.demo.in-view .gauge__fg { stroke-dashoffset: 8; }
.gauge__val { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.04em; margin-top: -26px; }
.gauge .mono { font-size: 10px; color: var(--muted); }
.ops__kpis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 11px; text-transform: uppercase; }
.ops__kpis li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: #c9c6be; display: flex; align-items: center; gap: 8px; }
.ops__kpis li::before { content: "✓"; color: #8cf0b0; }

/* ---------- Method (Mode C) ---------- */
#method { background: radial-gradient(70% 60% at 85% 10%, rgba(127,214,255,.08), transparent 60%), var(--bg); }
#method em.serif { color: var(--ice); }
#method .kicker { color: var(--ice); }
.loop { list-style: none; padding: 0; margin: 50px 0 70px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.loop li { padding: 28px 22px 0 0; border-top: 1px solid var(--line); position: relative; }
.loop li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
.loop span { font-size: 11px; color: var(--ice); }
.loop b { display: block; font-size: 20px; letter-spacing: -.02em; margin: 6px 0 8px; line-height: 1.2; }
.loop p { margin: 0; font-size: 14px; color: var(--muted); }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(127,214,255,.4); box-shadow: 0 20px 50px -20px rgba(127,214,255,.3); }
.cap h4 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.cap p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 40px 0 60px; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.tl__date { font-size: 12px; color: var(--gold); text-transform: uppercase; padding-top: 6px; }
.timeline h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.tl__org { color: var(--muted); margin: 4px 0 12px; font-size: 15px; }
.timeline p { margin: 0; max-width: 760px; color: #c9c6be; }
.timeline p.tl__org { color: var(--muted); margin: 4px 0 12px; }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edu__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.edu__item span { font-size: 11px; color: var(--gold); }
.edu__item b { font-size: 20px; letter-spacing: -.02em; }
.edu__item small { color: var(--muted); font-size: 14px; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.skill-group { background: var(--bg); padding: 28px; }
.skill-group h4 { font-size: 11px; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.skill-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group li { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #d8d5cd; transition: .25s; }
.skill-group li:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Vision ---------- */
.vision { background: radial-gradient(60% 80% at 50% 120%, rgba(242,181,74,.22), transparent 60%), var(--bg); text-align: center; overflow: hidden; }
.vision__quote { margin: 0 auto 30px; max-width: 1000px; font-size: clamp(32px, 4.8vw, 66px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; }
.vision__quote s { text-decoration: none; position: relative; color: var(--muted); }
.vision__quote s::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .6s; border-radius: 2px; }
.is-visible .vision__quote s::after { transform: scaleX(1); }
.vision__body { max-width: 680px; margin: 0 auto; color: #c9c6be; font-size: 18px; }

/* ---------- Contact ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact__title { max-width: 900px; margin-inline: auto; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 40px 0 26px; }
.contact__meta { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px clamp(18px, 3vw, 40px); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .ops { grid-template-columns: 1fr 1fr; }
  .ops__kpis { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .loop { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: rgba(7,8,12,.96); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links a { font-size: 28px; color: var(--text); font-weight: 700; letter-spacing: -.03em; }
  .nav.menu-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.menu-open .nav__burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.menu-open .nav__burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  .nav__burger { display: block; }
  .nav__name { display: none; }
  .nav__actions .resume-link { display: none; }
  .about { grid-template-columns: 1fr; }
  .stats { margin-top: 0; }
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .pipeline::before { display: none; }
  .studio { grid-template-columns: 1fr; }
  .studio__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .caps { grid-template-columns: 1fr 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .hero__grid { grid-template-columns: 1fr; }
  .cao { grid-template-columns: 1fr; }
  .skill-group--wide { grid-column: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .hero { padding: 100px 0 56px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar--sales { grid-row: auto; }
  .pillar--ai { grid-column: auto; }
  .pillar__bars { height: 60px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .stat { padding: 22px 18px; min-height: 140px; }
  .case__head { grid-template-columns: 1fr; gap: 6px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); padding: 24px 14px 14px; }
  .console { margin: 0 14px 16px; font-size: 11px; }
  .studio__out { grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; padding: 14px; }
  .post { padding: 10px; border-radius: 10px; }
  .ops { grid-template-columns: 1fr; padding: 20px; }
  .funnel__row { grid-template-columns: 96px 1fr; }
  .loop, .caps, .skills, .edu { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; }
  .dev__editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .dev pre { font-size: 11px; }
}

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