/* sardorcyber.uz (Figma "Personal Website": Desktop · 1440, Mobile · 390). Graphite + lime, Geist. */
:root {
  --bg: #0B0C0E; --surface: #131518; --raised: #1A1D21; --hairline: #22252A; --strong: #353940;
  --text: #EDEEF0; --text-2: #A1A7AE; --text-3: #6E747B; --accent: #C6F432; --on-accent: #0B0C0E;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.kicker, .nav nav a, .pill:not(.primary), .hint, .cue, .index, .role, .chips li, .links a, .dates, .tag, .groups h3, .tags li, .footer p, .dots span {
  font-family: "Geist Mono", ui-monospace, monospace;
}
.kicker { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 20px; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -.03em; max-width: 900px; }

/* 3D phone: one see-through canvas over everything; it never takes clicks */
#phone3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; visibility: hidden; }
.has-3d #phone3d { visibility: visible; } /* swapped in one frame: its first frame matches the flat phone */
.has-3d .flat { visibility: hidden; }
.no-3d #phone3d { display: none; }
.no-3d .flat { visibility: visible; }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 15px 26px; border: 1px solid var(--strong); border-radius: 999px; font-size: 15px; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.pill:hover { border-color: var(--text-2); }
.pill.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 16px; }
.pill.primary:hover { transform: translateY(-2px); }
.pill.small { padding: 9px 16px; font-size: 13px; }
.pill .short { display: none; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; position: relative; z-index: 6; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 16px; }
.mono-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a:not(.pill) { font-size: 13px; color: var(--text-2); transition: color .2s; }
.nav nav a:not(.pill):hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(circle at calc(50% + 370px) 380px, rgba(198, 244, 50, .13), transparent 380px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) center top / 120px 120px,
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) center top / 120px 120px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; height: 820px; padding-right: clamp(24px, 6vw, 92px); }
.hero-text { padding-top: 150px; }
.hero h1 { margin-top: 28px; font-size: clamp(88px, 9vw, 128px); line-height: .9; font-weight: 600; letter-spacing: -.04em; }
.lead { margin-top: 28px; max-width: 560px; font-size: 21px; line-height: 33px; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-phone { position: relative; padding-top: 92px; }
.slot { position: relative; width: 320px; aspect-ratio: 655 / 1352; touch-action: pan-y; }
.hero .slot { cursor: grab; }
.hero .slot:active { cursor: grabbing; }
.hero .flat { --tilt: 7deg; transform: rotate(var(--tilt)); } /* leans right, like the 3D phone's first frame */
.hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); opacity: 0; transition: opacity .6s; }
.has-3d .hint { opacity: 1; }
.cue { position: absolute; left: 0; right: 0; bottom: 36px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }

/* Work: stops on the left scroll past a sticky stage on the right */
.work .head { padding-top: 140px; padding-bottom: 20px; }
.track { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; }
.stop { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 560px; }
.stop .shot, .dots { display: none; }
.index { font-size: 13px; letter-spacing: .04em; color: var(--text-3); }
.stop h3 { font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.role { font-size: 14px; line-height: 20px; color: var(--accent); }
.body { font-size: 19px; line-height: 30px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--raised); font-size: 13px; line-height: 1.3; }
.links { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 6px; }
.links a { font-size: 14px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.links a:hover { color: var(--accent); border-color: var(--accent); }
.stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.stage .slot { width: 336px; }
.stage .flat { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.stage .flat.on { opacity: 1; }
.rail { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; justify-items: center; }
.rail i { width: 3px; height: 10px; border-radius: 2px; background: var(--strong); transition: height .4s var(--ease), background .4s; }
.rail i.on { height: 28px; background: var(--accent); }

/* Experience, Stack, Contact */
.section { padding-top: 140px; }
.timeline { margin-top: 56px; }
.timeline li { display: grid; grid-template-columns: 220px 400px minmax(0, 1fr); gap: 40px; padding: 32px 0; border-top: 1px solid var(--hairline); }
.dates { font-size: 14px; line-height: 28px; color: var(--text-3); }
.timeline h3 { font-size: 22px; line-height: 28px; font-weight: 500; }
.co { margin-top: 6px; font-size: 17px; line-height: 24px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { padding: 3px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 12px; line-height: 1.4; }
.desc { font-size: 17px; line-height: 27px; color: var(--text-2); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.groups h3 { font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { padding: 8px 14px; border: 1px solid var(--strong); border-radius: 999px; font-size: 14px; line-height: 1.3; }
.tags li.hi { border-color: var(--accent); color: var(--accent); }
.contact { padding-bottom: 140px; }
.email { display: inline-flex; align-items: center; gap: 24px; margin-top: 28px; font-size: clamp(56px, 7.2vw, 104px); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--accent); }
.email span { font-weight: 400; transition: transform .3s var(--ease); }
.email:hover span { transform: translateX(10px); }
.line { margin-top: 24px; font-size: 21px; line-height: 32px; color: var(--text-2); }
.contact .actions { margin-top: 40px; }
.footer { border-top: 1px solid var(--hairline); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 36px; }
.footer p { font-size: 13px; color: var(--text-3); }

/* The hero rises in on load */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
@keyframes rise-phone { from { opacity: 0; transform: translateY(40px) rotate(var(--tilt)); } }
.hero .flat { animation: rise-phone 1s var(--ease) .2s both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
}

/* Phones (Mobile · 390): no 3D, stops become a swipe row */
@media (max-width: 899px) {
  #phone3d { display: none; }
  .flat { visibility: visible !important; }
  h2 { margin-top: 14px; font-size: 40px; line-height: 43px; }
  .nav { height: 70px; }
  .brand { font-size: 15px; gap: 10px; }
  .mono-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
  .nav nav a:not(.pill) { display: none; }
  .pill.small { padding: 7px 12px; font-size: 12px; }
  .pill .long { display: none; } .pill .short { display: inline; }
  .hero { background: radial-gradient(circle at 50% 640px, rgba(198, 244, 50, .13), transparent 260px); }
  .hero-grid { display: block; height: auto; padding-right: 24px; }
  .hero-text { padding-top: 28px; }
  .hero .kicker { font-size: 11px; }
  .hero h1 { margin-top: 18px; font-size: 68px; line-height: 64px; }
  .lead { margin-top: 18px; font-size: 17px; line-height: 27px; }
  .actions { margin-top: 22px; gap: 10px; }
  .pill { padding: 13px 20px; font-size: 13px; }
  .pill.primary { font-size: 15px; }
  .hero-phone { height: 360px; padding-top: 44px; overflow: hidden; }
  .hero .slot { width: 254px; margin: 0 auto; cursor: auto; }
  .hero .flat { --tilt: 0deg; }
  .hint, .cue, .stage { display: none; }
  .work .head { padding-top: 72px; padding-bottom: 28px; }
  .track { display: block; padding: 0; }
  .stops { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 4px; scrollbar-width: none; }
  .stops::-webkit-scrollbar { display: none; }
  .stop { flex: 0 0 296px; min-height: 0; justify-content: flex-start; gap: 10px; padding: 24px 20px 22px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); scroll-snap-align: center; }
  .stop .shot { display: block; width: 210px; margin: 0 auto 10px; }
  .index { display: none; }
  .stop h3 { font-size: 28px; line-height: 30px; letter-spacing: -.02em; }
  .role { font-size: 12px; line-height: 17px; }
  .body { font-size: 15px; line-height: 23px; }
  .chips li { padding: 6px 12px; font-size: 12px; }
  .links a { font-size: 13px; }
  .dots { display: flex; align-items: center; gap: 6px; margin-top: 28px; }
  .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--strong); transition: width .3s var(--ease), background .3s; }
  .dots i.on { width: 22px; background: var(--accent); }
  .dots span { margin-left: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
  .section { padding-top: 64px; }
  .timeline { margin-top: 28px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .dates { font-size: 12px; line-height: 18px; }
  .timeline h3 { font-size: 19px; line-height: 25px; }
  .co { margin-top: 2px; font-size: 15px; }
  .desc { font-size: 15px; line-height: 23px; }
  .groups { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .groups h3 { font-size: 11px; }
  .tags { gap: 6px; margin-top: 10px; }
  .tags li { padding: 6px 12px; font-size: 12px; }
  .contact { padding-bottom: 64px; }
  .email { gap: 8px; margin-top: 16px; font-size: 36px; letter-spacing: -.03em; }
  .line { margin-top: 14px; font-size: 16px; line-height: 25px; }
  .contact .actions { margin-top: 24px; gap: 8px; }
  .footer .wrap { flex-direction: column; gap: 6px; padding-top: 22px; padding-bottom: 30px; }
  .footer p { font-size: 12px; }
}
