:root {
  --bg: #0E1117;
  --ink: #EDEAE2;
  --ink-soft: #a9b1bd;
  --ink-faint: #6b7280;
  --amber: #E08A3C;
  --amber-light: #F6C58A;
  --line: rgba(255,255,255,.09);
  --accent: 224,138,60;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 560px at 85% -5%, rgba(224,138,60,.34), transparent 60%),
    radial-gradient(800px 560px at -10% 30%, rgba(90,120,255,.18), transparent 60%),
    radial-gradient(900px 560px at 100% 80%, rgba(224,138,60,.12), transparent 60%),
    linear-gradient(180deg, #0E1117 0%, #121722 55%, #0E1117 100%);
  background-attachment: fixed;
  background-color: var(--bg);
}
body.locked { overflow: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(224,138,60,.35); }

.top, main, .foot { position: relative; z-index: 1; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 16px 40px;
  background: linear-gradient(180deg, rgba(14,17,23,.85), rgba(14,17,23,.55));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; text-decoration: none; }
.brand span { color: #F6C58A; }
.nav a.on { color: var(--amber-light); }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-soft); flex-wrap: wrap; }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--amber-light); }

main { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 24px; padding: 90px 0 80px; min-height: 78vh; }
.hero-copy { flex: 1; min-width: 0; }
.grad-text {
  background: linear-gradient(100deg, #fff 20%, var(--amber-light) 62%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; padding-bottom: .12em; font-weight: 700; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 36rem; margin: 0 0 26px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.pri {
  background: linear-gradient(180deg, #F0A154, #D97A24); color: #1a1006; font-weight: 700;
  box-shadow: 0 8px 24px -6px rgba(224,138,60,.6), 0 1px 0 rgba(255,255,255,.4) inset;
}
.btn.sec { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.btn.sec:hover { border-color: rgba(224,138,60,.6); }

.hero-phones { position: relative; width: 390px; height: 350px; flex: 0 0 390px; }
.hero-phones::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 340px; height: 340px; transform: translate(-50%,-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(246,197,138,.32), transparent 65%);
  animation: glow 6s ease-in-out infinite;
}
.phone-frame {
  position: absolute; width: 138px; height: 276px; border-radius: 24px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, #2a3344 0%, #171c26 60%);
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.7), 0 -1px 0 rgba(255,255,255,.18) inset;
  animation: bob 5.5s ease-in-out infinite;
}
.phone-frame.hot {
  background: linear-gradient(160deg, #6b3f17 0%, #2e1d0d 65%); border-color: rgba(224,138,60,.6);
  box-shadow: 0 30px 60px -16px rgba(224,138,60,.45), 0 -1px 0 rgba(255,255,255,.25) inset;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-frame:nth-child(1) { --r: -8deg; left: 0; top: 40px; }
.phone-frame:nth-child(2) { --r: 0deg; left: 126px; top: 0; animation-delay: -1.8s; }
.phone-frame:nth-child(3) { --r: 8deg; left: 252px; top: 50px; animation-delay: -3.4s; }

/* ---------- sections ---------- */
.block { padding: 70px 0 20px; scroll-margin-top: 70px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 8px; }
.section-note { color: var(--ink-soft); margin: 0 0 28px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  --accent: 224,138,60;
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px; text-align: left;
  background: linear-gradient(155deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 55%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.12) inset;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 150px at 20% 0%, rgba(255,255,255,.07), transparent 70%); }
button.tile, a.tile { font: inherit; color: inherit; cursor: pointer; display: block; width: 100%; text-decoration: none; }
button.tile:hover { transform: translateY(-6px); border-color: rgba(var(--accent), .55); box-shadow: 0 30px 56px -22px rgba(var(--accent), .4), 0 1px 0 rgba(255,255,255,.2) inset; }
.tile.static { padding: 32px 32px 30px; margin-bottom: 24px; }
.tile.static:last-child { margin-bottom: 0; }
.tile.static h3 { margin-bottom: 2px; }
.tile.static li { margin: 9px 0; line-height: 1.6; }
.tile h3 { font-size: 1.35rem; margin: 0 0 4px; letter-spacing: -.01em; }
.tile p { color: var(--ink-soft); margin: 0 0 10px; }
.tile .role { color: var(--amber-light); font-size: .95rem; }
.tile .result { color: var(--ink); font-weight: 600; font-size: 1.05rem; margin: 12px 0 6px; }
.tile.static ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-soft); }
.tile.static li b { color: var(--ink); }
.tile .fine { font-size: .85rem; color: var(--ink-faint); margin-bottom: 0; }
.tile .more { font-size: 14px; color: #F0A154; }
.tile .status { font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; }

.cover { height: 190px; border-radius: 14px; margin-bottom: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(var(--accent), .30), rgba(30,38,52,.92)); }
.cover img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
button.tile:hover .cover img { transform: scale(1.05); }

.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
  color: #7b8494; font: 12px ui-monospace, Menlo, monospace; }

.accent-orange { --accent: 224,138,60; }
.accent-blue { --accent: 90,120,255; }
.accent-green { --accent: 80,190,140; }
.accent-violet { --accent: 180,120,255; }
.accent-teal { --accent: 60,180,200; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.chip b { color: var(--ink); margin-right: 6px; }
.chip.hot { border-color: rgba(224,138,60,.6); background: linear-gradient(180deg, rgba(224,138,60,.18), rgba(224,138,60,.04)); }

.foot { max-width: 1080px; margin: 60px auto 0; padding: 30px 40px 50px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 14px; color: var(--ink-faint); border-top: 1px solid var(--line); }
.foot a { color: var(--amber-light); text-decoration: none; }

/* ---------- project panel ---------- */
.panel {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(var(--accent), .30), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(90,120,255,.14), transparent 60%),
    linear-gradient(180deg, #0E1117, #121722 60%, #0E1117);
  animation: panelIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.panel[hidden], .lightbox[hidden] { display: none; }
.panel-bar { position: sticky; top: 0; z-index: 2; padding: 14px 40px; background: rgba(14,17,23,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.back { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }
.back:hover { color: var(--amber-light); }
.panel-body { max-width: 1000px; margin: 0 auto; padding: 44px 40px 90px; }
.panel h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.panel .sub { color: var(--ink-soft); margin: 0 0 28px; }
.panel .status { font-size: 13px; color: var(--amber-light); margin-bottom: 26px; }

.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 18px; margin-bottom: 4px; scroll-snap-type: x proximity; }
.shot { flex: 0 0 auto; border: 0; padding: 0; cursor: zoom-in; border-radius: 22px; overflow: hidden; scroll-snap-align: start;
  background: linear-gradient(160deg, rgba(var(--accent), .30), rgba(23,28,38,.95));
  border: 1.5px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 44px -20px rgba(0,0,0,.8), 0 -1px 0 rgba(255,255,255,.16) inset;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  height: 300px; width: 280px; }
.shot.phone { width: 150px; }
.shot:hover { transform: translateY(-5px); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-hint { font-size: 12px; color: var(--ink-faint); margin-bottom: 36px; }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.panel h3 { font-size: 1.1rem; margin: 0 0 6px; }
.panel .cols p { color: var(--ink-soft); margin: 0 0 22px; }
.items { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.items li { color: var(--ink-soft); padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); line-height: 1.55; }
.items b { display: block; color: var(--amber-light); font: 600 13px ui-monospace, Menlo, monospace; margin-bottom: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #c9d0da; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.top-links { margin: 0 0 30px; gap: 12px; }
.btn.big { padding: 14px 26px; font-size: 16px; font-weight: 600; }
.btn.sec.big { border-color: rgba(var(--accent), .5); }
.live-url { font: 500 13px ui-monospace, Menlo, monospace; color: var(--amber-light); margin: -2px 0 12px; }
.next { font-size: 14px; color: var(--ink-faint); text-decoration: none; }
.next:hover { color: var(--amber-light); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,8,12,.92); display: flex; align-items: center; justify-content: center; padding: 30px; animation: fade .25s both; }
.lb-stage { max-width: 100%; max-height: 100%; display: flex; }
.lb-stage img { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lb-stage .ph { width: 320px; height: 520px; border-radius: 14px; background: #171c26; }
.lb-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-12px) rotate(var(--r,0deg)); } }
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .top { padding: 14px 20px; }
  main { padding: 0 20px; }
  .foot { padding: 26px 20px 40px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 50px 0 50px; min-height: 0; }
  .hero-phones { width: 100%; max-width: 390px; align-self: center; flex: none; margin-top: 10px; }
  .tiles { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 10px; }
  .panel-bar { padding: 12px 20px; }
  .panel-body { padding: 30px 20px 70px; }
  .nav { gap: 16px; }
}

/* ---------- about page ---------- */
.about-split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: stretch; padding: 40px 0 40px; min-height: 70vh;
  width: min(1160px, calc(100vw - 80px)); position: relative; left: 50%; transform: translateX(-50%); }
.about-photo { position: relative; min-height: 360px; border-radius: 22px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.about-split > div:last-child { align-self: center; }
.about-split h2 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; padding-bottom: .12em; font-weight: 700; }
.about-split p { color: var(--ink-soft); max-width: 44rem; margin: 0 0 14px; }
.about-split .cta { margin-top: 22px; }
@media (max-width: 860px) {
  .brand { font-size: 24px; }
  .about-split { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 20px; min-height: 0; width: auto; left: 0; transform: none; }
  .about-photo { max-width: 360px; min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------- key skills ---------- */
.skills { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skills li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.skills li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* ---------- gradient section headings ---------- */
.block h2 {
  width: fit-content; padding-bottom: .12em; line-height: 1.2;
  background: linear-gradient(100deg, #fff 20%, var(--amber-light) 62%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
