@font-face { font-family: "Abdullayev Heading"; src: url("fonts/heading-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Abdullayev Text"; src: url("fonts/text-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Abdullayev Text"; src: url("fonts/text-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Abdullayev Mono"; src: url("fonts/mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
body { margin: 0; }
a { color: #706A6C; }
a:hover { color: #741F3B; }
a:focus-visible { outline: 2px solid #741F3B; outline-offset: 3px; }

.wrap { position: relative; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: #FFFFFF; color: #222326; font-family: "Abdullayev Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 2.4vh, 24px) clamp(16px, 3vw, 48px) 0; }
.mail { display: inline-flex; align-items: center; min-height: 44px; font-family: "Abdullayev Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 20px; text-decoration: none; color: #706A6C; }
.hero { flex: none; padding: clamp(6px, 1.4vh, 14px) 16px clamp(14px, 2.6vh, 26px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin: 0; font-family: "Abdullayev Heading", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-size: clamp(34px, 5.2vh, 52px); line-height: 1.05; color: #222326; text-wrap: balance; }
.svc { margin: clamp(10px, 1.8vh, 16px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 15px; line-height: 22px; color: #222326; }
.svc span { display: inline-flex; align-items: center; }
.svc span + span::before { content: ""; display: inline-block; width: 1px; height: 14px; margin: 0 16px; background: #BAB5B2; }
.port { position: relative; flex: 1 1 auto; min-height: 0; margin: 0 clamp(16px, 3vw, 48px); background: #F3F0EC; overflow: hidden; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage { position: absolute; left: 0; top: 0; width: 1440px; height: 560px; transform-origin: 0 0; }

.story { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; column-gap: 12px; align-items: start; padding: 16px 24px 12px; background: #F3F0EC; }
.stp { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: #706A6C; transition: color 0.4s ease; }
.stp.on { color: #222326; }
.stp i { display: block; height: 3px; background: #E0DAD4; overflow: hidden; }
.stp i b { display: block; height: 100%; background: #741F3B; transform: scaleX(0); transform-origin: left center; }
.timer { display: flex; align-items: center; gap: 8px; padding-left: 12px; font-family: "Abdullayev Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 18px; color: #222326; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; background: #741F3B; animation: blink 1.25s steps(2, start) infinite; }

.card { position: absolute; z-index: 1; width: 240px; box-sizing: border-box; padding: 12px 14px; background: #FFFFFF; border: 1px solid #E0DAD4; opacity: 0; transform: translateY(10px); transition: opacity 0.62s ease, transform 0.88s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.44s ease; }
.card.on { opacity: 1; transform: none; }
.card.dim { opacity: 0.3; }
.card.live { border-color: #741F3B; }
.card::before { content: ""; position: absolute; left: -1px; top: -7px; width: 24px; height: 6px; background: #741F3B; transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.card.live::before { transform: scaleX(1); }
.hd { display: flex; align-items: center; gap: 10px; }
.ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: #F3F0EC; color: #741F3B; }
.ic svg, .mini svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.tt { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.st { flex: none; width: 8px; height: 8px; background: #E0DAD4; }
.live .st { background: #741F3B; animation: blink 1.25s steps(2, start) infinite; }
.done .st { background: #BAB5B2; animation: none; }
.sub { margin: 6px 0 0 38px; font-size: 13px; line-height: 18px; color: #706A6C; }
.s-done { display: none; }
.done .s-run { display: none; }
.done .s-done { display: inline; }
.pg { margin: 10px 0 0 38px; height: 2px; background: #E0DAD4; overflow: hidden; }
.pg span { display: block; height: 100%; background: #741F3B; transform: scaleX(0); transform-origin: left center; }
.run .pg span { animation: fill var(--d, 2.25s) cubic-bezier(0.55, 0.1, 0.3, 1) forwards; }
.done .pg span { transform: scaleX(1); background: #BAB5B2; }
.fast { --d: 1.06s; }
.type { display: inline-block; clip-path: inset(0 100% 0 0); }
.typed .type { animation: type 1.25s steps(22) forwards; }
.files { margin: 8px 0 0 38px; display: flex; flex-direction: column; gap: 4px; }
.file, .pill { display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-6px); transition: opacity 0.5s ease, transform 0.62s cubic-bezier(0.16, 1, 0.3, 1); }
.file.on, .pill.on { opacity: 1; transform: none; }
.file { font-family: "Abdullayev Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 18px; color: #222326; }
.mini { display: grid; place-items: center; color: #706A6C; }
.mini svg { width: 14px; height: 14px; }
.pills { margin: 10px 0 0 38px; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 5px 9px; background: #F3F0EC; font-size: 12px; line-height: 16px; font-weight: 600; color: #222326; }
.pill .mini { color: #741F3B; }

.eureka { position: absolute; z-index: 2; left: 490px; top: 180px; width: 460px; box-sizing: border-box; padding: 28px 32px 30px; background: #741F3B; color: #FFFFFF; clip-path: polygon(23px 0, 100% 0, 100% 100%, 0 100%, 0 60px); opacity: 0; transform: scale(0.92); transition: opacity 0.62s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.eureka.on { opacity: 1; transform: none; }
.e-bar { width: 24px; height: 6px; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.eureka.on .e-bar { transform: scaleX(1); }
.e-label { margin-top: 14px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.01em; }
.e-title { margin-top: 4px; font-family: "Abdullayev Heading", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-size: 44px; line-height: 1.02; }
.e-sub { margin-top: 12px; font-size: 15px; line-height: 22px; }

.panel { width: 280px; left: 960px; top: 150px; }
.big { margin: 14px 0 0; font-family: "Abdullayev Heading", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; color: #222326; }
.cap { margin-top: 4px; font-size: 13px; line-height: 18px; color: #706A6C; }
.bars { margin-top: 16px; height: 64px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid #E0DAD4; }
.bars span { flex: 1 1 0; height: 0; background: #741F3B; transition: height 0.5s ease; }
.cap2 { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: #741F3B; }
.cap2 .ok { display: none; width: 16px; height: 16px; color: #0F6B5C; }
.cap2 .ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: square; }
.panel.fin .cap2 { color: #0F6B5C; }
.panel.fin .cap2 .ok { display: block; }

.c-cat { left: 96px; top: 124px; }
.c-skill { left: 438px; top: 124px; }
.c-hes { left: 780px; top: 20px; }
.c-teq { left: 780px; top: 124px; }
.c-anl { left: 780px; top: 228px; }
.c-qov { left: 1122px; top: 105px; }
.c-kon { left: 1100px; top: 360px; width: 300px; }
.c-mcp { left: 780px; top: 381px; }
.c-plt { left: 438px; top: 381px; }

@media (max-width: 700px) {
  .wrap { height: auto; min-height: 100vh; overflow: visible; }
  .top { padding: 12px 16px 0; }
  .mail { font-size: 12px; }
  .hero { padding: 16px 16px 18px; }
  .hero h1 { font-size: 30px; }
  .svc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; line-height: 18px; }
  .svc span + span::before { display: none; }
  .port { flex: none; height: 880px; }
  .story { padding: 14px 12px 10px; column-gap: 6px; }
  .stp { font-size: 11px; line-height: 14px; gap: 6px; }
  .timer { padding-left: 4px; font-size: 11px; }
  .live-dot { display: none; }
  .stage { width: 390px; height: 760px; }
  .card { width: 342px; padding: 10px 12px; }
  .card.sm { width: 106px; padding: 8px 8px 10px; }
  .sm .ic, .sm .sub { display: none; }
  .sm .tt { font-size: 12px; line-height: 16px; }
  .sm .pg { margin: 8px 0 0; }
  .eureka { left: 24px; top: 250px; width: 342px; padding: 22px 22px 24px; }
  .e-title { font-size: 34px; }
  .c-cat { left: 24px; top: 10px; }
  .c-skill { left: 24px; top: 140px; }
  .c-hes { left: 24px; top: 268px; }
  .c-teq { left: 142px; top: 268px; }
  .c-anl { left: 260px; top: 268px; }
  .c-qov { left: 24px; top: 372px; }
  .c-kon { left: 24px; top: 538px; width: 342px; }
  .c-mcp { left: 24px; top: 680px; }
  .c-plt { left: 142px; top: 680px; }
  .panel { left: 24px; top: 520px; width: 342px; }
}
@keyframes fill { to { transform: scaleX(1); } }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
@keyframes blink { to { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1.25s cubic-bezier(0.16, 1, 0.3, 1) both; }
.r1 { animation-delay: 0.15s; }
.r2 { animation-delay: 0.3s; }
.r3 { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .live .st, .live-dot { animation: none; }
  .card, .file, .pill, .eureka { transition: none; }
}

.wordmark { display: block; width: 132px; height: auto; margin: -10px -10px -15px; }

.foot { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 10px clamp(16px, 3vw, 48px) 12px; font-size: 13px; line-height: 18px; color: #706A6C; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; color: #706A6C; text-decoration: none; }
.foot a:hover { color: #741F3B; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .foot { flex-direction: column; align-items: flex-start; padding: 16px; }
}
