@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/noto-serif-display-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/noto-serif-display-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/noto-serif-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/noto-serif-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green-950: #041a18;
  --green-900: #062421;
  --green-800: #0b332e;
  --cream: #f6f3ec;
  --white: #fffefb;
  --ink: #141f1c;
  --muted: #5d6763;
  --line: #e4dfd4;
  --gold: #d9bf8a;
  --gold-deep: #a98a52;
  --gold-text: #7a6230;
  --teal: #1f6660;
  --teal-soft: #e2e9e5;
  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gap: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --rail: 141.500px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--green-950);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.12; }

.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.sprite { position: absolute; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 40;
  padding: 12px 18px; border-radius: 7px;
  background: var(--gold); color: #1c1a12; font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 9px 20px;
  border: 1px solid transparent; border-radius: 7px;
  font: 500 13.500px/1.3 var(--sans);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-gold { background: var(--gold); color: #1c1a12; }
.btn-gold:hover { background: #e6cf9f; }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-900); }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.500px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow i {
  position: relative; width: 10px; height: 10px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.eyebrow-hero { font-size: 13px; color: var(--gold); gap: 16px; }
.eyebrow-hero i { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: var(--green-950);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 clamp(20px, 6vw, 88px);
}
.logo {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 34px; line-height: 1;
  color: var(--gold);
}
.logo span:last-child { margin: 6px 0 0 -14px; font-size: 32px; }
.nav { display: flex; gap: clamp(18px, 2.600vw, 40px); margin-right: auto; margin-left: clamp(24px, 8vw, 120px); }
.nav a {
  position: relative; padding: 13px 0;
  font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-end { display: flex; align-items: center; gap: 28px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 6px 4px; background: none; border: 0; cursor: pointer;
  font: 400 13px/1.3 var(--sans); color: #d8dcd8;
}
.lang-btn:hover { color: #fff; }
.lang-btn .icon { font-size: 17px; }
.lang-btn .lang-caret { font-size: 12px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 25;
  min-width: 150px; padding: 6px;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block; width: 100%; min-height: 44px; padding: 9px 12px;
  background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left;
  font: 400 14px/1.3 var(--sans); color: var(--ink);
}
.lang-menu button:hover { background: #f1eee6; }
.lang-menu button[aria-current="true"] { background: var(--teal-soft); font-weight: 600; }
.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 7px; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.500px; background: #fff;
  transition: transform .2s, top .2s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--green-950) 25%, var(--green-800) 62%, var(--green-950) 100%);
  color: #fff;
}
.hero-photo {
  position: absolute; top: 0; bottom: 0;
  right: max(12%, calc(50vw - 550px));
  width: min(50%, 720px); height: 100%; max-width: none;
  object-fit: cover; object-position: 50% top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 80%, transparent 100%), linear-gradient(to top, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 80%, transparent 100%), linear-gradient(to top, transparent 0, #000 16%);
  mask-composite: intersect;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
  grid-template-rows: 1fr auto;
  gap: 32px 24px;
  max-width: 1440px; min-height: min(calc(100vh - var(--header-h)), 800px);
  margin: 0 auto; padding: clamp(32px, 4vw, 56px) clamp(20px, 6vw, 88px) clamp(32px, 4vw, 52px);
}
.hero-main { align-self: center; max-width: 640px; }
h1 {
  margin: 24px 0 22px; max-width: 8.600em;
  font-size: clamp(44px, 5.800vw, 84px); line-height: 1.06;
}
h1 em { display: block; font-style: normal; color: var(--gold); }
.hero-lead { max-width: 480px; font-size: clamp(15px, 1.200vw, 17px); color: #e6e9e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-roles {
  position: relative;
  grid-column: 2; grid-row: 1; align-self: center;
  margin: 0 -14px;
}
/* Qatorlar orasida suriladigan shisha ko'rsatkich */
.hero-roles::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: var(--gw, 0); height: var(--gh, 0);
  transform: translate(var(--gx, 0), var(--gy, 0));
  border: 1px solid rgba(217, 191, 138, .38); border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(217, 191, 138, .18), rgba(255, 255, 255, .05));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), width .7s cubic-bezier(.22, 1, .36, 1), height .7s cubic-bezier(.22, 1, .36, 1), opacity .5s;
}
.hero-roles.has-active::before { opacity: 1; }

.hero-roles li {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.hero-roles li:last-child { border-bottom: 0; }
.hero-roles li > div { transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .5s; }
.hero-roles.has-active li > div { opacity: .68; }
.hero-roles li.is-active > div { opacity: 1; transform: translateX(4px); }
.hero-roles strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; transition: color .5s; }
.hero-roles li.is-active strong { color: var(--gold); }
.hero-roles div span { display: block; font-size: 12.500px; line-height: 1.5; color: #c6ccc8; }

/* Faol qatorda qolgan vaqtni ko'rsatuvchi chiziq */
.hero-roles li.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  transform-origin: left;
  animation: role-progress var(--role-dwell, 3200ms) linear both;
}
.hero-roles.is-paused li.is-active::after { animation: none; }

.hex { position: relative; display: block; width: 32px; height: 32px; flex: none; color: var(--gold); }
.hex .icon { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 1; transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .5s; }
.hex .icon + .icon { inset: 8px; width: 16px; height: 16px; stroke-width: 1.600; }
.hero-roles li.is-active .hex .icon:first-child {
  stroke-dasharray: 60;
  filter: drop-shadow(0 0 7px rgba(217, 191, 138, .75));
  animation: role-draw 1.100s ease-out both;
}
.hero-roles li.is-active .hex .icon + .icon { transform: scale(1.14); }
@keyframes role-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes role-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.hero-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 16px; }
.hero-stats div {
  display: flex; flex-direction: column-reverse;
  max-width: 200px; padding: 0 clamp(18px, 2.400vw, 36px);
  border-left: 1px solid rgba(255,255,255,.16);
}
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dd { font: 400 clamp(28px, 2.600vw, 38px)/1.15 var(--serif); white-space: nowrap; }
.hero-stats dt { margin-top: 6px; font-size: 13px; line-height: 1.35; color: #d8dcd8; }

/* Panels */
.panels {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap);
  max-width: 1600px; margin: 0 auto; padding: var(--gap);
}
.row { display: grid; gap: var(--gap); }
.row-about { grid-template-columns: minmax(0, 1.300fr) minmax(0, 1fr); }
.row-path { grid-template-columns: minmax(0, 1.300fr) minmax(0, 1fr); }
.panel { background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 3.400vw, 52px); }
.panel h2 { margin-top: 12px; }

/* About */
.about-grid { display: flow-root; }
.about-text p { margin-top: 14px; color: #2e3835; }
.about-text .about-intro { margin-top: 32px; color: var(--muted); font-size: 16px; }
.about-photo { position: relative; float: right; width: 42%; margin: -28px 0 18px clamp(24px, 3vw, 44px); padding-bottom: 66px; }
.about-photo img { width: 100%; aspect-ratio: 162 / 213; object-fit: cover; border-radius: 12px; }
.note {
  background: var(--white); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(10, 30, 26, .16);
  color: #26302d;
}
.about-photo .note {
  position: absolute; right: 14px; bottom: 0; width: min(88%, 260px); margin-left: -24px;
  padding: 18px 26px 20px; font-size: 14.500px; line-height: 1.5;
}
.quote-badge { display: block; width: 19px; height: 14px; margin: 0 0 8px -6px; fill: var(--green-900); }
.quote-badge circle { fill: var(--white); }

/* Skills */
.skills { display: flex; flex-direction: column; }
.skill-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; margin-top: 30px; }
.skill-grid li {
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 16px 22px; background: var(--white); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10, 30, 26, .05);
  transition: transform .2s, box-shadow .2s;
}
.skill-grid li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 30, 26, .1); }
.skill-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  background: var(--teal-soft); border-radius: 50%;
  color: var(--teal); font-size: 22px;
}
.skill-icon-react { color: #2b9bbd; }
.skill-grid strong { font-size: 13.500px; font-weight: 600; line-height: 1.35; }
.skill-grid li > span:last-child { margin-top: 5px; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Timeline */
.eyebrow-plain { letter-spacing: .14em; }
.timeline { position: relative; margin-top: 34px; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 112px 1fr; gap: 60px;
  padding-bottom: 28px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; top: 9px; left: calc(var(--rail) - 3.500px);
  width: 8px; height: 8px; border-radius: 50%;
  background: #6d7a70; box-shadow: 0 0 0 3px var(--cream);
  z-index: 1;
}
.timeline li::after {
  content: ""; position: absolute; top: 9px; bottom: -9px; left: var(--rail);
  width: 1px; background: #cfcabd;
}
.timeline li:last-child::after { bottom: 0; }
.timeline time { font-size: 13.500px; color: #2e3835; }
.timeline strong { display: block; font-size: 15px; font-weight: 600; }
.timeline div span { display: block; font-size: 14px; line-height: 1.6; color: #39433f; }

/* Quote */
.quote {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px;
  background: var(--green-900);
  color: #fff;
}
.quote-mark { display: block; height: 42px; font: 400 66px/1 var(--serif); color: var(--gold); }
.quote blockquote p { font: 400 clamp(28px, 2.600vw, 38px)/1.26 var(--serif); }
.quote figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; padding-top: 22px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #dfe3df;
  background: linear-gradient(var(--gold), var(--gold)) left top / 28px 1px no-repeat;
}
.quote figcaption .icon { font-size: 16px; }

/* Projects & blog */
.work section + section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin-top: 8px; }
.section-head .btn { flex: none; }
.section-head .icon { font-size: 15px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.600vw, 24px); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(10, 30, 26, .07);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(10, 30, 26, .12); }
.card-media { position: relative; }
.card-img { overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 206 / 91; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.post .card-img img { aspect-ratio: 206 / 60; }
.card-img-contain { background: #01040c; }
.card-img-contain img { object-fit: contain; }
.card:hover .card-img img { transform: scale(1.07); }
.card-logo {
  position: absolute; left: 16px; bottom: -14px;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: #fff; border-radius: 7px;
  box-shadow: 0 4px 12px rgba(10, 30, 26, .18);
  padding: 7px;
}
.card-logo img { width: 100%; height: auto; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.card-body > p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.tags li { padding: 3px 12px; background: #f1eee6; border-radius: 99px; font-size: 12.500px; color: #2e3835; }

.post .card-body { padding: 16px 22px 18px; }
.post .post-kicker { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.post h3 { font: 500 clamp(18px, 1.500vw, 21px)/1.3 var(--serif); }
.post .post-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 18px; font-size: 13px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Contact */
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius);
  background: linear-gradient(115deg, var(--green-950), var(--green-900));
  color: #fff;
}
.contact-text { position: relative; z-index: 1; padding: clamp(32px, 4.400vw, 68px) clamp(24px, 4vw, 64px); }
.contact .eyebrow { color: var(--gold); }
.contact h2 { margin-top: 12px; max-width: 13em; }
.contact-lead { margin-top: 18px; max-width: 480px; color: #d8dcd8; }
.contact-list { display: grid; gap: 4px; margin: 26px 0 30px; font-size: 14.500px; color: #e6e9e6; }
.contact-list li { display: flex; align-items: center; gap: 14px; overflow-wrap: anywhere; }
.contact-list .icon { font-size: 20px; color: var(--gold); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a:hover { color: var(--gold); }
.contact-photo { position: relative; min-height: 460px; }
.contact-frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius) 0 0 0; }
.contact-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
}
.contact-photo .note {
  position: absolute; left: -48px; top: 44%; z-index: 2;
  width: 250px; padding: 20px 30px 24px;
  font: 400 19px/1.35 var(--serif); color: var(--ink);
}

/* Roles move off the portrait once they would cover the face */
@media (max-width: 1240px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; }
  .hero-roles {
    grid-column: 1; grid-row: 3;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    margin: 0; padding: 8px; border-radius: 14px;
    background: rgba(4, 26, 24, .82);
  }
  .hero-roles li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 12px 16px; border-bottom: 0; }
  .hero-roles li.is-active::after { left: 12px; right: 12px; }
}

/* Tablet */
@media (max-width: 1180px) {
  .row-about, .row-path { grid-template-columns: minmax(0, 1fr); }
  .quote { min-height: 460px; }
  .timeline li { grid-template-columns: 96px 1fr; gap: 44px; }
  .timeline { --rail: 117.500px; }
}

/* Menu collapses before nav links start to wrap */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-end { gap: 14px; }
  .header-end .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    margin: 0; padding: 8px 20px 18px;
    background: var(--green-950);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--gold); }

  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; }
  .hero-photo {
    position: relative; right: auto; order: 2; width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0 auto;
    object-position: 50% top;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 78%, transparent 100%);
    mask-composite: add;
  }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { display: contents; }
  .hero-main { order: 1; align-self: stretch; padding: 32px 20px 12px; max-width: none; }
  .hero-roles { order: 3; align-self: stretch; display: block; padding: 0 8px; border-radius: 0; background: none; }
  .hero-roles li { flex-direction: row; align-items: center; gap: 18px; padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero-stats { order: 4; padding: 28px 20px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .hero-stats div, .hero-stats div:first-child { max-width: none; padding: 0 12px 0 16px; border-left: 1px solid rgba(255,255,255,.16); }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-photo { min-height: 0; aspect-ratio: 1 / 1; }
  .contact-frame { border-radius: 0; }
  .contact-photo .note { left: 20px; top: auto; bottom: 20px; width: 220px; padding: 16px 22px 18px; font-size: 17px; }
}

/* Phone */
@media (max-width: 720px) {
  .panel { padding: 28px 20px; }
  .about-grid { display: flex; flex-direction: column; }
  .about-photo { order: 2; float: none; width: 100%; margin: 24px 0 0; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 26px; }
  .timeline { --rail: 3.500px; }
  .timeline li::before, .timeline li::after { top: 7px; }
  .timeline time { color: var(--muted); }
}

/* ---------- Harakat qatlami ---------- */

/* Skroll ko'rsatkichi va sarlavha */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #fff1cf);
  transform: scaleX(0); transform-origin: left;
}
.site-header { transition: background-color .4s, box-shadow .4s; }
.site-header.is-stuck {
  background: rgba(4, 26, 24, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* Paydo bo'lish */
.reveal.reveal.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease-out var(--d, 0s), transform .6s var(--ease) var(--d, 0s);
}
.reveal.reveal.reveal.is-in { opacity: 1; transform: none; }
/* Tugmalar */
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
/* Lenta */
.ticker { overflow: hidden; background: var(--green-950); border-block: 1px solid rgba(217, 191, 138, .16); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: slide-x 42s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; padding-right: 44px;
  font: 400 clamp(20px, 2vw, 28px)/1.3 var(--serif); color: var(--gold); white-space: nowrap;
}
.ticker-track span::after { content: "✦"; margin-left: 44px; font-size: 11px; color: rgba(217, 191, 138, .6); }
@keyframes slide-x { to { transform: translateX(-50%); } }

.skill-icon { transition: background-color .3s, color .3s; }
.skill-grid li:hover .skill-icon { background: var(--green-900); color: var(--gold); }
.card, .skill-grid li { position: relative; }

/* Timeline nuri */
.timeline::before {
  content: ""; position: absolute; top: 9px; bottom: 0; left: var(--rail); z-index: 1; width: 1px;
  background: linear-gradient(to bottom, var(--gold-deep), var(--gold));
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.timeline li::before { z-index: 2; transition: background-color .4s, box-shadow .4s, scale .4s var(--ease); }
.timeline li.is-lit::before { background: var(--gold-deep); scale: 1.25; }
.timeline strong { transition: color .4s; }
.timeline li.is-lit strong { color: var(--teal); }

/* Iqtibos */
.quote-bg {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(64%, 460px);
  background: url("assets/img/quote-papers.webp") 50% 10% / cover no-repeat;
}
.quote::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--green-900) 36%, rgba(6, 36, 33, .55) 56%, transparent 74%),
    linear-gradient(to top, rgba(5, 25, 20, .5), transparent 30%);
}
.quote blockquote, .quote figcaption { position: relative; z-index: 1; max-width: 48%; }

/* Galereya */
.gallery { margin-top: 48px; }
.gallery .section-head { align-items: flex-end; }
.gallery-lead { max-width: 380px; font-size: 14px; color: var(--muted); }
.poster-window {
  position: relative;
  margin-inline: calc(clamp(28px, 3.400vw, 52px) * -1); overflow: hidden;
}
.poster-window::before, .poster-window::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 6%; pointer-events: none;
}
.poster-window::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.poster-window::after { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.poster-track { display: flex; width: max-content; padding-block: 10px; animation: slide-x 70s linear infinite; }
.poster-window:hover .poster-track, .poster-track:focus-within { animation-play-state: paused; }
.poster-track { --poster-w: clamp(168px, 15vw, 224px); }
.poster {
  position: relative; display: block;
  flex: none; width: var(--poster-w); margin-right: 18px; padding: 0;
  background: none; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(10, 30, 26, .22);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.poster:hover, .poster:focus-visible { transform: translateY(-6px) scale(1.03); box-shadow: 0 22px 42px rgba(10, 30, 26, .34); }
.poster img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
/* Instagram postlari 4:5, balandligi posterlar bilan bir xil */
.poster-ig { width: calc(var(--poster-w) * 1.422); cursor: pointer; }
.poster-ig img { aspect-ratio: 4 / 5; }
.poster-tall { width: var(--poster-w); }
.poster-tall img { aspect-ratio: 9 / 16; }
.poster-badge {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 30px; height: 30px;
  background: rgba(4, 26, 24, .72); border-radius: 50%;
  color: #fff; font-size: 16px;
}
.gallery-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 380px; }
.ig-follow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--teal); }
.ig-follow[hidden] { display: none; }
.ig-follow .icon { font-size: 18px; transition: transform .4s var(--ease); }
.ig-follow:hover .icon { transform: rotate(-10deg) scale(1.15); }

/* Loyihalar */
.card-body > .card-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; font: 400 30px/1.15 var(--serif); color: var(--teal); }
.card-body > .card-metric[hidden] { display: none; }
.card-metric span { font: 400 12.500px/1.35 var(--sans); color: var(--muted); }
.card-metric [data-stat] { font: 400 30px/1.15 var(--serif); color: var(--teal); }
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 10px; }
.card .post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 500; color: var(--gold-text); }
.card:hover .post-more .icon { transform: translateX(5px); }
.cases-head { margin: 44px 0 16px; }
.cases-head h3 { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--serif); }
.cases-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cases { border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.case summary {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px;
  min-height: 72px; padding: 14px 4px; cursor: pointer; list-style: none;
}
.case summary::-webkit-details-marker { display: none; }
.case-num { font: 400 20px/1 var(--serif); color: var(--gold-text); }
.case-head { display: grid; gap: 3px; }
.case-head strong { font-size: 16px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.case-head > span { font-size: 13px; color: var(--muted); }
.case summary:hover strong { color: var(--teal); }
.case-plus { justify-self: center; font-size: 20px; color: var(--gold-text); transition: transform .3s var(--ease); }
.case[open] .case-plus { transform: rotate(45deg); }
.case-body { padding: 4px 4px 26px 52px; }
.case[open] .case-body { animation: case-in .35s var(--ease); }
@keyframes case-in { from { opacity: 0; transform: translateY(-6px); } }
.case-body .tags { margin: 0 0 18px; padding: 0; }
.case-body dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.case-body dt { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.case-body dd { font-size: 14px; line-height: 1.6; color: #2e3835; }
.case-note { margin-top: 14px; font-size: 12.500px; color: var(--muted); }
.case-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--teal); }
.case-link .icon { transition: transform .3s var(--ease); }
.case-link:hover .icon { transform: translateX(4px); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-text .social { margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(217, 191, 138, .4); border-radius: 50%;
  color: var(--gold); font-size: 19px;
  transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--gold); color: var(--green-950); }

/* Jonli statistika */
.live-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.live-stats[hidden] { display: none; }
.live-stats strong { font: 500 22px/1.2 var(--serif); color: var(--ink); }
.live-stats [data-stat-wrap][hidden] { display: none; }
.live-stats small { flex-basis: 100%; font-size: 12px; }
.live-dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: #2f9e6e; }

/* Blog havolasi */
.post-link {
  display: block; padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.post-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 10px; }
.post .post-more {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0;
  font-size: 13px; font-weight: 500; color: var(--gold-text);
}
.post-more .icon { transition: transform .4s var(--ease); }
.post:hover .post-more .icon { transform: translateX(5px); }

/* Oynalar */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(2, 14, 13, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .55s var(--ease) both; }
dialog[open]::backdrop { animation: fade-in .4s ease-out both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(26px) scale(.98); } }
html:has(dialog[open]) { overflow: hidden; }
.article { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; overflow: auto; background: var(--cream); border-radius: var(--radius); }
.article > img { width: 100%; aspect-ratio: 206 / 60; object-fit: cover; }
.article-body { padding: clamp(24px, 4vw, 40px); }
.article-body .post-kicker { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.article-body p + p { margin-top: 14px; }
.article-body strong { font-weight: 600; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(4, 26, 24, .78); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  color: #fff; font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s, rotate .4s var(--ease);
}
.dialog-close:hover { background: var(--gold); color: var(--green-950); rotate: 90deg; }
.lightbox { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); margin: auto; overflow: hidden; background: transparent; border-radius: 12px; }
.lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 32px); }

/* Footer */
.site-footer { max-width: 1600px; margin: 0 auto; padding: 44px clamp(20px, 6vw, 88px) 32px; color: #d8dcd8; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.to-top {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(217, 191, 138, .45); border-radius: 50%; color: var(--gold); font-size: 18px;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.to-top:hover { background: var(--gold); color: var(--green-950); transform: translateY(-4px); }
.footer-copy { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #9aa5a0; }

@media (max-width: 720px) {
  .poster-window { margin-inline: -20px; }
  .case-body { padding-left: 4px; }
  .case summary { grid-template-columns: 34px minmax(0, 1fr) 44px; }
  .quote { min-height: 600px; }
  .quote-bg { top: 0; bottom: auto; left: 0; width: 100%; height: 72%; background-position: 50% 6%; }
  .quote blockquote, .quote figcaption { max-width: none; }
  .quote::after { background: linear-gradient(to top, var(--green-900) 36%, transparent 62%); }
  .gallery .section-head { align-items: flex-start; }
}
/* 404 */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: #d8dcd8; text-align: center; }
.error-code { font: 400 clamp(72px, 14vw, 140px)/1 var(--serif); color: var(--gold); }
.error-page h1 { max-width: none; margin: 12px 0 14px; font-size: clamp(30px, 4vw, 44px); color: #fff; }
.error-page .btn { margin-top: 28px; }

@media (max-width: 960px) {
  .case-body dl { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .poster-window { overflow-x: auto; }
}
