:root {
  --page: #191923;
  --panel: #20202a;
  --panel-2: #252530;
  --card: #2b2b36;
  --card-hover: #30303c;
  --text: #f3f3f5;
  --muted: #a9a9b3;
  --line: rgba(255,255,255,.075);
  --yellow: #f5c211;
  --shadow: 0 14px 40px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 320px;
  background: #15151d;
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
svg { display: block; }

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto;
  min-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 84px;
  align-items: start;
  background: var(--page);
  box-shadow: 0 0 60px rgba(0,0,0,.45);
}

/* Left profile */
.profile-panel {
  height: calc(100vh - 32px);
  position: sticky;
  top: 16px;
  z-index: 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 56px;
  background: var(--panel);
  box-shadow: 10px 0 30px rgba(0,0,0,.13);
}
.profile-head {
  padding: 34px 28px 28px;
  text-align: center;
  background: #252530;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.avatar-wrap { width: 104px; height: 104px; margin: 0 auto 17px; position: relative; }
.avatar {
  width: 104px; height: 104px; border-radius: 50%; position: relative; overflow: hidden;
  background: linear-gradient(145deg,#353542,#1d1d26); border: 5px solid #30303b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 12px 30px rgba(0,0,0,.25);
}
.avatar img {
  position: absolute;
  width: 260%;
  max-width: none;
  height: auto;
  left: -39%;
  top: -22%;
  filter: saturate(.92) contrast(1.04);
}
.status-dot {
  position: absolute; width: 14px; height: 14px; right: 9px; bottom: 8px; border-radius: 50%;
  background: var(--yellow); border: 3px solid #252530; box-shadow: 0 0 0 4px rgba(245,194,17,.12);
}
.profile-head h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: .005em; }
.profile-head p { margin: 8px auto 0; max-width: 220px; color: #bdbdc6; font-size: 14px; font-weight: 450; line-height: 1.55; }
.profile-scroll { min-height: 0; overflow-y: auto; padding: 22px 28px 30px; scrollbar-width: thin; scrollbar-color: #3a3a45 transparent; }
.facts { margin: 0; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; font-size: 13px; line-height: 1.5; }
.facts dt { color: #d7d7db; font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); text-align: right; }
.facts .accent-text { color: var(--yellow); }
.languages { padding: 23px 0 21px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.languages > div { display: grid; justify-items: center; gap: 8px; }
.language-ring {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-size: 11px; font-weight: 700; background: conic-gradient(var(--yellow) var(--ring), #3a3a44 0);
}
.language-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }
.language-ring { --ring: 100%; }
.language-ring.ring-mid { --ring: 72%; }
.language-ring.ring-low { --ring: 25%; }
.language-ring { isolation: isolate; }
.language-ring::after { content: attr(class); display: none; }
.language-ring { color: #efeff1; }
.language-ring { text-shadow: 0 0 0 transparent; }
.language-ring { z-index: 0; }
.language-ring::before { z-index: -1; }
.languages small { color: #aaaab4; font-size: 11.5px; line-height: 1.35; }
.skill-list { padding: 22px 0 14px; border-bottom: 1px solid var(--line); }
.skill { margin-bottom: 17px; }
.skill > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #e0e0e5; }
.skill-track { height: 4px; background: #3b3b46; overflow: hidden; }
.skill-track span { display: block; height: 100%; background: var(--yellow); box-shadow: 0 0 8px rgba(245,194,17,.2); animation: skill-in .8s ease both; }
@keyframes skill-in { from { width: 0; } }
.quick-list { list-style: none; padding: 19px 0; margin: 0; border-bottom: 1px solid var(--line); }
.quick-list li { color: #b2b2bc; font-size: 12.5px; line-height: 1.5; margin: 8px 0; }
.quick-list span { color: var(--yellow); margin-right: 8px; font-weight: 700; }
.profile-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 0 3px; color: #eeeef1; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.profile-cta svg { width: 15px; height: 15px; color: var(--yellow); transition: transform .2s ease; }
.profile-cta:hover svg { transform: translate(2px,-2px); }
.profile-socials { height: 56px; padding: 0 28px; background: #252530; display: flex; align-items: center; gap: 18px; }
.profile-socials a { color: #9999a3; transition: color .2s ease; }
.profile-socials a:hover { color: var(--yellow); }
.profile-socials svg { width: 15px; height: 15px; }
.profile-socials > span { margin-left: auto; color: #555560; font-weight: 800; font-size: 12px; }

/* Center content */
.content-column { min-width: 0; padding: 30px; }
.hero-card {
  min-height: 560px; position: relative; overflow: hidden; padding: clamp(48px, 7vw, 100px);
  background: radial-gradient(circle at 78% 32%, rgba(245,194,17,.11), transparent 26%), linear-gradient(135deg,#2d2d38,#22222c 62%,#292934);
  box-shadow: var(--shadow); display: flex; align-items: center;
}
.hero-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg,transparent,black 40%,black); }
.hero-card::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(245,194,17,.15); border-radius: 50%; right: -160px; bottom: -250px; box-shadow: 0 0 0 70px rgba(245,194,17,.018), 0 0 0 140px rgba(245,194,17,.013); }
.hero-letter { position: absolute; right: 3%; bottom: -22%; font-size: min(38vw,560px); line-height: 1; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.04); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 690px; }
.hero-kicker { color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.hero-content h2 { margin: 21px 0 25px; font-size: clamp(48px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; }
.hero-content h2 em { color: var(--yellow); font-style: normal; }
.hero-content p { margin: 0 0 38px; color: #d0d0d5; font-size: 16px; line-height: 1.7; }
.hero-content code { color: var(--yellow); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
.yellow-button { width: fit-content; min-height: 50px; padding: 0 20px; display: flex; align-items: center; gap: 24px; background: var(--yellow); color: #17171e; font-size: 12px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.yellow-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,194,17,.18); }
.yellow-button svg { width: 16px; height: 16px; }
.result-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 36px 0 20px; }
.result-strip div { display: flex; align-items: center; gap: 12px; }
.result-strip strong { color: var(--yellow); font-size: 23px; line-height: 1; }
.result-strip span { color: #d6d6db; font-size: 13px; line-height: 1.4; }
.content-section { padding: 58px 0 20px; }
.section-title { margin-bottom: 30px; }
.section-title > span { display: block; color: var(--yellow); margin-bottom: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-title h2 { margin: 0; font-size: clamp(25px,3vw,36px); line-height: 1.13; letter-spacing: -.025em; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.about-grid > p { margin: 0; padding: 28px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); font-size: 16px; line-height: 1.72; }
.about-grid .about-lead { color: #e3e3e6; font-size: 17px; line-height: 1.55; border-top: 2px solid var(--yellow); }
.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.service-card { min-height: 250px; padding: 30px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, background .25s ease; }
.service-card:hover { transform: translateY(-5px); background: var(--card-hover); }
.service-icon { color: var(--yellow); font-size: 13px; font-weight: 800; letter-spacing: .085em; }
.service-card h3 { margin: 28px 0 13px; font-size: 18px; line-height: 1.35; }
.service-card p { margin: 0; color: #c3c3cb; font-size: 16px; line-height: 1.72; }
.service-card a { margin-top: auto; padding-top: 22px; color: var(--yellow); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; display: flex; align-items: center; gap: 8px; }
.service-card a svg { width: 13px; height: 13px; }
.featured-project { margin-bottom: 32px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); background: var(--card); border-top: 3px solid var(--yellow); box-shadow: var(--shadow); overflow: hidden; }
.featured-project-visual { min-height: 390px; position: relative; overflow: hidden; background: #202029; }
.featured-project-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(18,18,24,.82)); pointer-events: none; }
.featured-project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .45s ease; }
.featured-project:hover .featured-project-visual img { transform: scale(1.025); }
.featured-project-visual > span { position: absolute; z-index: 2; left: 24px; bottom: 22px; padding: 8px 11px; color: #17171d; background: var(--yellow); font-size: 11.5px; font-weight: 900; letter-spacing: .095em; }
.featured-project-body { padding: 34px; display: flex; flex-direction: column; }
.featured-role { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.featured-role span { color: #b4b4bd; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.featured-role strong { padding: 6px 10px; color: var(--yellow); background: #202029; font-size: 13px; letter-spacing: .025em; }
.featured-project-body h3 { margin: 0 0 14px; font-size: 23px; line-height: 1.3; }
.featured-project-body p { margin: 0; color: #c7c7ce; font-size: 16px; line-height: 1.68; }
.featured-project-body ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.featured-project-body li { position: relative; padding-left: 19px; color: #c3c3cb; font-size: 15px; line-height: 1.65; }
.featured-project-body li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--yellow); }
.featured-project-body small { display: block; margin-top: auto; padding-top: 22px; color: var(--yellow); font-size: 11.5px; font-weight: 650; line-height: 1.6; letter-spacing: .035em; border-top: 1px solid var(--line); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.project-card { background: var(--card); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease; }
.project-card:hover { transform: translateY(-5px); }
.portfolio-grid .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
.portfolio-grid .project-card:last-child .project-visual { height: 100%; min-height: 320px; }
.project-visual { height: 240px; position: relative; overflow: hidden; background: #202029; }
.project-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(18,18,24,.88)); pointer-events: none; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .45s ease; }
.project-card:hover .project-visual img { transform: scale(1.035); }
.project-visual > span { position: absolute; z-index: 2; left: 20px; bottom: 17px; padding: 7px 10px; color: #17171d; background: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .085em; }
.project-body { padding: 27px; }
.project-body h3 { margin: 0 0 12px; font-size: 18px; font-weight: 650; line-height: 1.4; }
.project-body p { margin: 0; color: #c1c1c8; font-size: 16px; line-height: 1.68; }
.project-body ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.project-body li { position: relative; padding-left: 18px; color: #c0c0c8; font-size: 15px; line-height: 1.68; }
.project-body li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--yellow); }
.project-body small { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--yellow); font-size: 11.5px; font-weight: 650; line-height: 1.6; letter-spacing: .035em; }
.additional-project { margin-top: 24px; padding: 28px 30px; background: var(--card); border-left: 3px solid var(--yellow); box-shadow: var(--shadow); }
.additional-project > span { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.additional-project h3 { margin: 9px 0 8px; font-size: 18px; }
.additional-project p { margin: 0; color: #c3c3cb; font-size: 16px; line-height: 1.7; }
.timeline { position: relative; display: grid; gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 11px; bottom: 11px; width: 2px; background: #33333e; }
.timeline article { display: grid; grid-template-columns: 30px 1fr; gap: 18px; }
.timeline-marker { position: relative; z-index: 2; width: 30px; display: flex; justify-content: center; }
.timeline-marker span { width: 14px; height: 14px; margin-top: 30px; border: 3px solid var(--panel); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px #3b3b45; }
.timeline-card { padding: 28px 30px; background: var(--card); box-shadow: var(--shadow); position: relative; }
.timeline-card::before { content: ""; position: absolute; left: -9px; top: 30px; width: 18px; height: 18px; background: var(--card); transform: rotate(45deg); }
.timeline-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.timeline-head h3 { margin: 0; font-size: 17px; }
.timeline-head span { padding: 4px 10px; border-radius: 20px; background: #202029; color: var(--yellow); font-size: 11px; }
.timeline-card p { margin: 16px 0 0; max-width: 680px; color: #c3c3cb; font-size: 16px; line-height: 1.72; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-cloud span { padding: 11px 15px; background: var(--card); box-shadow: var(--shadow); color: #dddde1; font-size: 13px; font-weight: 550; border-bottom: 2px solid transparent; transition: border-color .2s ease, color .2s ease; }
.tool-cloud span:hover { border-color: var(--yellow); color: white; }
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.contact-grid > a { min-height: 190px; padding: 30px; position: relative; display: flex; flex-direction: column; background: var(--card); box-shadow: var(--shadow); transition: transform .25s ease, background .25s ease; }
.contact-grid > a:hover { transform: translateY(-5px); background: var(--card-hover); }
.contact-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--yellow); background: #22222c; }
.contact-icon svg { width: 18px; height: 18px; }
.contact-grid small { margin-top: auto; color: #b2b2bc; font-size: 11px; font-weight: 650; letter-spacing: .09em; }
.contact-grid strong { margin-top: 5px; font-size: 16px; }
.contact-grid > a > svg { position: absolute; right: 28px; bottom: 29px; width: 17px; height: 17px; color: var(--yellow); }
.main-footer { min-height: 68px; margin-top: 50px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; background: #252530; color: #a0a0aa; font-size: 11px; }

/* Right navigation */
.navigation-panel { height: calc(100vh - 32px); position: sticky; top: 16px; z-index: 6; background: var(--panel); box-shadow: -10px 0 30px rgba(0,0,0,.12); display: grid; grid-template-rows: 70px 1fr 60px; }
.menu-label { display: grid; place-items: center; background: #252530; color: #9c9ca7; font-size: 10px; letter-spacing: .14em; writing-mode: vertical-rl; }
.navigation-panel nav { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 31px; }
.navigation-panel nav a { position: relative; color: #777783; transition: color .2s ease; }
.navigation-panel nav a:hover { color: var(--yellow); }
.navigation-panel nav svg { width: 18px; height: 18px; }
.navigation-panel nav span { position: absolute; pointer-events: none; right: 36px; top: 50%; transform: translateY(-50%) translateX(8px); opacity: 0; padding: 6px 10px; color: #17171d; background: var(--yellow); white-space: nowrap; font-size: 11px; font-weight: 700; transition: opacity .2s ease, transform .2s ease; }
.navigation-panel nav a:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }
.nav-initials { display: grid; place-items: center; color: var(--yellow); background: #252530; font-size: 12px; font-weight: 800; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 275px minmax(0,1fr) 72px; }
  .profile-head { padding-inline: 22px; }
  .profile-scroll { padding-inline: 22px; }
  .content-column { padding: 22px; }
  .hero-card { min-height: 510px; padding: 58px 45px; }
  .hero-content h2 { font-size: clamp(48px,7vw,70px); }
  .result-strip { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  body { padding-bottom: 70px; }
  .app-shell { width: 100%; margin: 0; display: block; min-height: 100vh; }
  .profile-panel { height: auto; position: relative; top: 0; display: block; }
  .profile-head { padding: 28px 20px 24px; }
  .avatar-wrap, .avatar { width: 88px; height: 88px; }
  .avatar { font-size: 27px; }
  .profile-scroll { overflow: visible; padding: 20px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
  .languages { max-width: 350px; }
  .skill-list, .quick-list { display: none; }
  .profile-cta { padding-top: 18px; }
  .profile-socials { display: none; }
  .content-column { padding: 16px; }
  .featured-project { display: block; }
  .featured-project-visual { min-height: 0; height: 280px; }
  .featured-project-body { padding: 28px 24px; }
  .featured-project-body small { margin-top: 22px; }
  .project-visual { height: 230px; }
  .project-body { padding: 24px; }
  .additional-project { padding: 24px; }
  .hero-card { min-height: 510px; padding: 44px 26px; }
  .hero-card::after { right: -280px; }
  .hero-content h2 { font-size: clamp(46px,12vw,68px); }
  .navigation-panel { height: 64px; position: fixed; inset: auto 0 0 0; z-index: 30; display: block; background: #252530; box-shadow: 0 -7px 25px rgba(0,0,0,.35); }
  .menu-label, .nav-initials { display: none; }
  .navigation-panel nav { height: 64px; flex-direction: row; justify-content: space-around; gap: 0; }
  .navigation-panel nav a { width: 20%; height: 64px; display: grid; place-items: center; }
  .navigation-panel nav a:hover span { display: none; }
  .navigation-panel nav span { display: none; }
  .service-grid, .portfolio-grid, .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid .project-card:last-child { grid-column: auto; display: block; }
  .portfolio-grid .project-card:last-child .project-visual { height: 230px; min-height: 0; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .hero-card { min-height: 480px; }
  .hero-content h2 { font-size: clamp(42px,12.7vw,62px); }
  .hero-content p { max-width: 270px; }
  .result-strip { gap: 20px 12px; padding: 28px 8px 8px; }
  .result-strip div { display: block; }
  .result-strip strong { display: block; font-size: 20px; margin-bottom: 5px; }
  .content-section { padding-top: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > p, .service-card, .timeline-card, .project-body, .contact-grid > a { padding: 24px; }
  .project-visual { height: 200px; }
  .featured-project { margin-bottom: 24px; }
  .featured-project-visual { height: 210px; }
  .featured-project-body { padding: 24px 20px; }
  .featured-project-body h3 { font-size: 20px; }
  .featured-project-body p { font-size: 15px; }
  .portfolio-grid .project-card:last-child .project-visual { height: 200px; }
  .project-body { padding: 22px 20px; }
  .project-body h3 { font-size: 16px; }
  .project-body small { font-size: 11px; line-height: 1.55; }
  .timeline article { gap: 10px; grid-template-columns: 24px 1fr; }
  .timeline::before { left: 11px; }
  .timeline-marker { width: 24px; }
  .timeline-card::before { left: -7px; width: 14px; height: 14px; }
  .main-footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
