/* AKM — graphite + silver (the suit) + gold (the watch), with tech accents */
:root {
  --bg: #08090b; --bg2: #0e1013; --card: #121519; --card2: #191d22;
  --line: rgba(200, 212, 228, .08); --line2: rgba(200, 212, 228, .16);
  --text: #eef1f5; --muted: #98a1ad; --dim: #59616c; --silver: #c9d1db;
  --gold: #e3c077; --gold2: #b8913f; --gold-soft: rgba(227, 192, 119, .12);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 22px; --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { letter-spacing: -.005em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #0b0c0e; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* ---------- ambience ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s var(--ease) infinite alternate; }
.bg-glow i:nth-child(1) { width: 46vw; height: 46vw; background: #1b222b; top: -12vw; inset-inline-start: -8vw; }
.bg-glow i:nth-child(2) { width: 34vw; height: 34vw; background: #1e2026; bottom: -10vw; inset-inline-end: -6vw; animation-delay: -6s; }
.bg-glow i:nth-child(3) { width: 22vw; height: 22vw; background: rgba(227, 192, 119, .10); top: 40%; left: 45%; animation-delay: -12s; }
@keyframes drift { to { transform: translate(6vw, 5vh) scale(1.15); } }
.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 50% { transform: translate(-3%, 2%); } }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-content: center; gap: 22px; text-align: center; transition: opacity .7s var(--ease), visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
.sig { font-family: var(--script); font-size: clamp(54px, 9vw, 96px); line-height: 1; color: var(--text); direction: ltr; white-space: nowrap; }
.sig span { color: var(--gold); }
#loader .sig { clip-path: inset(0 100% 0 0); animation: write 1.6s var(--ease) .1s forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
#loader .bar { width: 160px; height: 2px; margin: auto; background: var(--line); overflow: hidden; border-radius: 2px; }
#loader .bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- cursor ---------- */
#cursor, #cursor-dot { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; }
#cursor { width: 38px; height: 38px; border: 1px solid rgba(227, 192, 119, .6); transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s; }
#cursor-dot { width: 5px; height: 5px; background: var(--gold); }
body.has-cursor #cursor, body.has-cursor #cursor-dot { opacity: 1; }
#cursor.hover { width: 64px; height: 64px; background: rgba(227, 192, 119, .12); border-color: transparent; }

#progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--gold2), var(--gold)); transform-origin: right; transform: scaleX(0); }
html[dir="ltr"] #progress { transform-origin: left; }

/* ---------- nav ---------- */
#nav { position: fixed; top: 14px; inset-inline: 14px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px 10px 10px; border: 1px solid transparent; border-radius: 18px; transition: background .4s, border-color .4s, transform .5s var(--ease); }
#nav.solid { background: rgba(12, 14, 17, .72); backdrop-filter: blur(16px); border-color: var(--line); }
#nav.hide { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 13px; letter-spacing: .08em; font-weight: 700;
  background: linear-gradient(140deg, var(--gold), var(--gold2)); color: #0b0c0e; box-shadow: 0 6px 24px -8px rgba(227, 192, 119, .6); }
.brand-name { font-size: 15px; }
.links { display: flex; gap: 4px; }
.links a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--muted); border-radius: 10px; transition: color .3s; }
.links a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.links a:hover, .links a.on { color: var(--text); }
.links a:hover::after, .links a.on::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.lang:hover { background: var(--gold); color: #0b0c0e; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 24px; }
body.menu .burger i:first-child { top: 20px; transform: rotate(45deg); }
body.menu .burger i:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 500; font-size: 15px; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s; will-change: transform; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.wide { width: 100%; justify-content: center; }
.btn-gold { background: linear-gradient(140deg, var(--gold), var(--gold2)); color: #0b0c0e; box-shadow: 0 10px 30px -12px rgba(227, 192, 119, .7); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, #f3dba3, var(--gold)); opacity: 0; transition: opacity .35s; }
.btn-gold:hover::before { opacity: 1; }
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(227, 192, 119, .85); }
.btn-ghost { border: 1px solid var(--line2); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-soft); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn-ghost:hover::before { transform: none; }
.btn .arrow { font-weight: 400; transition: transform .35s var(--ease); }
html[dir="ltr"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(-5px); }
html[dir="ltr"] .btn:hover .arrow { transform: scaleX(-1) translateX(-5px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 120px clamp(20px, 6vw, 90px) 60px; position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 99px; font-size: 13px; color: var(--muted); background: rgba(18, 21, 25, .6); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 0 rgba(123, 216, 143, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(123, 216, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 216, 143, 0); } }
.hero-name { font-size: clamp(44px, 7.2vw, 104px); line-height: 1.05; font-weight: 700; margin: 22px 0 4px; letter-spacing: -.02em; }
.hero-name .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-name .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-name.in .w > span { transform: none; }
.hero-name .w:last-child > span { background: linear-gradient(120deg, var(--silver) 5%, #ffffff 35%, var(--gold) 75%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signature { font-family: var(--script); font-size: clamp(40px, 5vw, 70px); line-height: 1; color: var(--gold); direction: ltr; text-align: end; opacity: .9; margin: -6px 0 10px; }
html[dir="ltr"] .signature { text-align: start; }
.signature span { color: var(--text); }
.role { font-size: clamp(16px, 1.6vw, 20px); color: var(--text); font-weight: 500; }
.intro { color: var(--muted); max-width: 600px; margin-top: 12px; font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 38px; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); margin-top: 8px; }

.hero-photo { position: relative; height: min(82svh, 760px); display: grid; place-items: end center; perspective: 1000px; }
.hero-photo img { position: relative; z-index: 2; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); animation: rise 1.4s var(--ease) both .3s;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
@keyframes rise { from { opacity: 0; translate: 0 60px; } }
.halo { position: absolute; z-index: 0; bottom: 8%; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(201, 209, 219, .22), rgba(227, 192, 119, .10) 42%, transparent 70%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.ring { position: absolute; z-index: 1; bottom: 12%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line2); animation: spin 30s linear infinite; }
.ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.ring.r2 { width: 92%; bottom: 2%; border-style: dashed; opacity: .5; animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip { position: absolute; z-index: 3; padding: 9px 14px; border-radius: 12px; font-size: 13px; color: var(--muted); direction: ltr;
  background: rgba(18, 21, 25, .75); border: 1px solid var(--line2); backdrop-filter: blur(10px); animation: bob 5s ease-in-out infinite; }
.float-chip b { color: var(--gold); font-weight: 600; }
.float-chip.c1 { top: 22%; inset-inline-start: -4%; }
.float-chip.c2 { top: 48%; inset-inline-end: -2%; animation-delay: -1.6s; }
.float-chip.c3 { bottom: 16%; inset-inline-start: 2%; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid var(--line2); border-radius: 14px; }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: rgba(12, 14, 17, .6); direction: ltr; }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-size: 22px; font-weight: 500; color: var(--dim); white-space: nowrap; transition: color .3s; }
.marquee span:hover { color: var(--gold); }
.marquee span::after { content: "✦"; margin-inline-start: 46px; color: var(--gold2); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 120px clamp(20px, 6vw, 90px) 40px; max-width: 1400px; margin: 0 auto; }
.head { margin-bottom: 48px; max-width: 820px; }
.num { display: inline-block; font-size: 13px; color: var(--gold); letter-spacing: .2em; margin-bottom: 14px; }
.num::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--gold); vertical-align: middle; margin-inline-start: 12px; }
.head h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.lead { color: var(--muted); margin-top: 16px; font-size: 17px; max-width: 640px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 192, 119, .14), transparent 60%); }
.card:hover { border-color: var(--line2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card:hover::before { opacity: 1; }
.grid { display: grid; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] .tags { justify-content: flex-start; }
.tags span { font-size: 12px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); transition: border-color .3s, color .3s; }
.card:hover .tags span { border-color: rgba(227, 192, 119, .35); color: var(--text); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.about-text p { font-size: 18px; color: #d9cfc3; margin-bottom: 18px; }
blockquote { margin-top: 26px; padding: 22px 26px; border-inline-start: 2px solid var(--gold); background: var(--gold-soft); border-radius: 0 16px 16px 0; font-size: 18px; color: var(--text); }
html[dir="rtl"] blockquote { border-radius: 16px 0 0 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.fact { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .3s, transform .5s var(--ease); }
.fact:hover { border-color: var(--gold2); }
.fact span { display: block; font-size: 13px; color: var(--muted); }
.fact b { font-weight: 500; font-size: 16px; }

/* services */
.services { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.service .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 22px; transition: transform .5s var(--ease), background .4s, color .4s; }
.service .ico svg { width: 26px; height: 26px; }
.service:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--gold); color: #0b0c0e; }
.service h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }
.service .idx { position: absolute; top: 22px; inset-inline-end: 24px; font-size: 13px; color: var(--dim); }

/* apps */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 22px; }
.app { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; padding: 26px; }
.phone { width: 170px; aspect-ratio: 9 / 18.5; border-radius: 28px; padding: 8px; background: #0a0807; border: 1px solid var(--line2); position: relative;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .03); transition: transform .7s var(--ease); }
.app:hover .phone { transform: rotate(-4deg) translateY(-6px) scale(1.03); }
.phone .scr { height: 100%; border-radius: 21px; overflow: hidden; background: var(--s-bg, #f3efe6); color: var(--s-fg, #1c1915); padding: 16px 10px 10px; font-size: 8px; display: flex; flex-direction: column; gap: 7px; }
.phone .notch { position: absolute; top: 12px; left: 50%; width: 46px; height: 8px; margin-left: -23px; border-radius: 6px; background: #0a0807; z-index: 2; }
.scr .t { font-weight: 700; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.scr .t i { width: 14px; height: 14px; border-radius: 5px; background: var(--s-acc); display: inline-block; }
.scr .blk { border-radius: 9px; background: var(--s-card, rgba(0, 0, 0, .06)); padding: 8px; }
.scr .big { font-size: 22px; font-weight: 700; line-height: 1; color: var(--s-acc); }
.scr .row { display: flex; align-items: center; gap: 6px; }
.scr .bar { height: 5px; border-radius: 3px; background: var(--s-acc); }
.scr .bar.o { opacity: .35; }
.scr .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--s-acc); flex: none; }
.scr .dot.f { background: var(--s-acc); }
.scr .ln { height: 4px; border-radius: 2px; background: currentColor; opacity: .18; flex: 1; }
.scr .ring { position: static; width: 64px; height: 64px; margin: 6px auto; border-radius: 50%; border: 7px solid var(--s-acc); border-inline-end-color: rgba(255, 255, 255, .1); animation: spin 8s linear infinite; }
.app h3 { font-size: 24px; font-weight: 600; }
.app .sub { color: var(--gold); font-size: 14px; margin-bottom: 10px; }
.app p { color: var(--muted); font-size: 15px; }
.app .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* experience timeline */
.timeline { position: relative; display: grid; gap: 14px; padding-inline-start: 40px; margin-bottom: 40px; }
.timeline .line { position: absolute; inset-block: 0; inset-inline-start: 12px; width: 1px; background: var(--line); }
.timeline .line i { position: absolute; inset: 0; background: linear-gradient(var(--gold), var(--gold2)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.job { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.job::after { content: ""; position: absolute; inset-inline-start: -33px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); transition: background .3s, box-shadow .3s; }
.job:hover::after { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.job .n { font-size: 13px; color: var(--dim); width: 26px; flex: none; }
.job h3 { font-size: 18px; font-weight: 500; }
.job p { color: var(--muted); font-size: 14px; }
.job .cat { margin-inline-start: auto; font-size: 12px; padding: 5px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.projects { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.project h3 { font-size: 20px; font-weight: 600; }
.project .sub { color: var(--gold); font-size: 13px; margin: 4px 0 10px; }
.project p { color: var(--muted); font-size: 15px; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line2); font-size: 14px; color: var(--muted); transition: all .35s var(--ease); }
.filters button:hover { color: var(--text); border-color: var(--gold2); }
.filters button.on { background: var(--gold); color: #0b0c0e; border-color: var(--gold); }
.gallery { columns: 3 280px; column-gap: 16px; }
.shot { break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden; position: relative; cursor: zoom-in; border: 1px solid var(--line); background: var(--card);
  transition: opacity .5s var(--ease), transform .6s var(--ease); }
.shot.out { display: none; }
.shot img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.shot:hover img { transform: scale(1.07); filter: saturate(1.1); }
.shot figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(5, 6, 8, .92)); transform: translateY(30%); opacity: 0; transition: all .5s var(--ease); }
.shot:hover figcaption { transform: none; opacity: 1; }
.shot figcaption b { display: block; font-weight: 500; }
.shot figcaption span { font-size: 12px; color: var(--gold); }

/* skills */
.skills { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.skill h3 { font-size: 17px; font-weight: 500; }
.skill .tags { justify-content: flex-start; direction: ltr; }
html[dir="rtl"] .skill .tags { justify-content: flex-end; }
.skill .tags span { font-size: 13px; padding: 6px 12px; }
.skill .tags span:hover { background: var(--gold); color: #0b0c0e; border-color: var(--gold); }

/* education */
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.edu .card h3 { font-size: 20px; font-weight: 600; margin-top: 10px; }
.edu .card .sub { color: var(--gold); font-size: 14px; }
.edu .card p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.edu .badge { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.cert .date { font-size: 12px; color: var(--gold); white-space: nowrap; direction: ltr; padding-top: 3px; min-width: 56px; }
.cert h4 { font-size: 15px; font-weight: 500; }
.cert p { font-size: 13px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.channels { display: grid; gap: 12px; align-content: start; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.channel .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; transition: all .4s var(--ease); }
.channel .ic svg { width: 22px; height: 22px; }
.channel:hover .ic { background: var(--gold); color: #0b0c0e; transform: scale(1.08) rotate(-6deg); }
.channel span { display: block; font-size: 13px; color: var(--muted); }
.channel b { font-weight: 500; direction: ltr; display: inline-block; }
.channel .go { margin-inline-start: auto; color: var(--dim); transition: transform .4s var(--ease), color .3s; }
.channel:hover .go { color: var(--gold); transform: translateX(-6px); }
html[dir="ltr"] .channel .go { transform: scaleX(-1); }
html[dir="ltr"] .channel:hover .go { transform: scaleX(-1) translateX(-6px); }
.brief { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; transition: transform .5s var(--ease); }
.brief-head { font-size: 12px; letter-spacing: .25em; color: var(--gold); direction: ltr; text-align: end; }
html[dir="ltr"] .brief-head { text-align: start; }
.brief label > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.brief input, .brief textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.brief input:focus, .brief textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); transition: all .3s var(--ease); }
.chips button.on { background: var(--gold); color: #0b0c0e; border-color: var(--gold); transform: scale(1.04); }

footer { text-align: center; padding: 80px 20px 50px; border-top: 1px solid var(--line); margin-top: 80px; }
footer .sig.small { font-size: 56px; margin-bottom: 10px; }
footer p { font-size: 14px; }

#toTop { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card2); border: 1px solid var(--line2); color: var(--gold); opacity: 0; transform: translateY(20px); transition: all .5s var(--ease); }
#toTop.show { opacity: 1; transform: none; }
#toTop:hover { background: var(--gold); color: #0b0c0e; }

#lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; gap: 12px; padding: 40px; background: rgba(5, 6, 8, .92); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img { max-height: 80vh; max-width: 90vw; border-radius: 16px; transform: scale(.92); transition: transform .5s var(--ease); }
#lightbox.open img { transform: none; }
#lightbox p { color: var(--muted); text-align: center; }
#lightbox .x { position: absolute; top: 20px; inset-inline-end: 20px; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line2); font-size: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .burger { display: block; }
  body.menu .links { display: flex; position: fixed; inset: 76px 14px auto; flex-direction: column; padding: 14px; border-radius: 18px; background: rgba(12, 14, 17, .96); border: 1px solid var(--line); }
  body.menu .links a { padding: 14px; font-size: 17px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: start; }
  .hero-photo { order: -1; height: 56svh; }
  .float-chip.c1 { inset-inline-start: 2%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .app { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .app .acts, .app .tags { justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .job .cat { display: none; }
  .stats { gap: 22px; }
  .stats b { font-size: 30px; }
  .section { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-name .w > span { transform: none; }
  #loader { display: none; }
}

/* mobile polish */
.hero-text { position: relative; z-index: 3; }
.gallery { columns: 3 220px; }
footer .sig.small { font-size: clamp(36px, 10vw, 56px); }
@media (max-width: 900px) {
  .hero-photo { height: 52svh; margin-bottom: -40px; }
  .hero-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); }
}
@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 14px; }
  .float-chip { font-size: 11px; padding: 7px 10px; }
}

/* ---------- tech layer ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(200, 212, 228, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 212, 228, .045) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
body::after { content: ""; position: fixed; inset-inline: 0; top: -20vh; height: 20vh; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, rgba(227, 192, 119, .05), transparent); animation: scan 9s linear infinite; }
@keyframes scan { to { transform: translateY(140vh); } }
.num, .stats b, .float-chip, .tags span, .brief-head, .cert .date, .job .n, .service .idx, .status, .mono, .lang, .edu .badge { font-family: var(--mono); }
.stats b { font-weight: 500; letter-spacing: -.02em; }
.num::before { content: "// "; color: var(--dim); }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--card); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 192, 119, .7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::after { opacity: 1; }
.ring { border-color: rgba(201, 209, 219, .18); }
.ring::after { background: var(--silver); box-shadow: 0 0 16px var(--silver); }
.ring.r2::after { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.marquee span { font-family: var(--mono); font-size: 18px; }
.hero-photo img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(201, 209, 219, .08)); }
.mono { background: linear-gradient(140deg, #f3f5f8, var(--silver) 45%, #8f99a6); color: #0b0c0e; box-shadow: 0 6px 24px -8px rgba(201, 209, 219, .45); }
.signature span { color: var(--silver); }
#loader .sig span, .sig span { color: var(--gold); }
.status { font-family: var(--font); }

/* logo */
.logo { width: 44px; height: 44px; transition: transform .6s var(--ease); filter: drop-shadow(0 4px 14px rgba(201, 209, 219, .18)); }
.brand:hover .logo { transform: rotate(-12deg) scale(1.06); }
.loader-logo { margin: 0 auto; animation: logoIn 1s var(--ease) both, spin 8s linear 1s infinite; }
@keyframes logoIn { from { opacity: 0; transform: scale(.6) rotate(-60deg); } }
.foot-logo { margin: 0 auto 14px; opacity: .9; }
.float-chip.c4 { top: 8%; inset-inline-end: 8%; animation-delay: -.8s; }
.float-chip.c5 { bottom: 34%; inset-inline-end: -4%; animation-delay: -2.4s; }
.float-chip.c6 { top: 64%; inset-inline-start: -6%; animation-delay: -4s; }
