:root {
  --bg: #09040f;
  --bg-elevated: #140a1f;
  --bg-panel: #1b1129;
  --bg-soft: rgba(127, 72, 172, 0.08);
  --surface: #100817;
  --text: #f3eef9;
  --muted: #b5a8c8;
  --line: rgba(181, 168, 200, 0.14);
  --line-strong: rgba(181, 168, 200, 0.3);
  --accent: #3b0f63;
  --accent-bright: #7a39ba;
  --accent-cool: #c48cff;
  --accent-soft: #efe4fb;
  --success: #6bc081;
  --danger: #ff7777;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(122, 57, 186, 0.24), transparent 24%),
    radial-gradient(circle at top left, rgba(196, 140, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #09040f 0%, #12081b 38%, #09040f 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  opacity: 0.35;
  transform: translateX(-35%);
  animation: sheen 14s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px min(32px, 4vw);
  background:
    linear-gradient(90deg, rgba(59, 15, 99, 0.95), rgba(122, 57, 186, 0.78)),
    rgba(9, 4, 15, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(196, 140, 255, 0.18);
  box-shadow: 0 10px 40px rgba(19, 6, 34, 0.22);
}

.nav-logo,
.hero h1,
.section-heading h2,
.block-header h3,
.timeline-item h3,
.skill-card h3,
.contact-box h2,
.admin-login-card h1,
.dashboard-header h1,
.panel-header h2 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
}

.nav-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 46px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-logo:hover .nav-logo-badge {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.96;
}

.nav-logo-image {
  display: block;
  width: 100%;
  max-width: 84px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(243, 238, 249, 0.84);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(0deg, rgba(9, 4, 15, 0.72), rgba(9, 4, 15, 0.2)),
    url("../homepage/Extended_Cyborg_Junaid-transformed-min.png") center top / cover no-repeat;
  transform: scale(1.08) translateY(var(--hero-shift, 0px));
  transition: transform 0.4s ease-out;
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 18%, rgba(122, 57, 186, 0.28), transparent 24%),
    radial-gradient(circle at 26% 16%, rgba(196, 140, 255, 0.12), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(9, 4, 15, 0.3) 45%, #09040f 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 14vw, 180px) 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy-stack {
  max-width: 720px;
}

.hero-portrait-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-portrait-card {
  position: relative;
  width: min(100%, 340px);
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(27, 17, 41, 0.45));
  border: 1px solid rgba(196, 140, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(0deg, rgba(9, 4, 15, 0.16), transparent 36%);
  pointer-events: none;
  z-index: 1;
}

.hero-portrait-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  z-index: 1;
}

.hero-portrait-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 140, 255, 0.28);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.hero-portrait-image {
  width: 100%;
  height: auto;
  aspect-ratio: 654 / 799;
  object-fit: cover;
}

.reveal-on-load .hero-kicker,
.reveal-on-load .hero-title-line,
.reveal-on-load .hero-copy-line,
.reveal-on-load .hero-actions-line,
.reveal-on-load .hero-portrait-line {
  opacity: 0;
  transform: translateY(28px);
}

body.is-ready .reveal-on-load .hero-kicker {
  animation: riseIn 0.9s ease forwards 0.12s;
}

body.is-ready .reveal-on-load .hero-title-line {
  animation: riseIn 1s ease forwards 0.28s;
}

body.is-ready .reveal-on-load .hero-copy-line {
  animation: riseIn 0.9s ease forwards 0.46s;
}

body.is-ready .reveal-on-load .hero-actions-line {
  animation: riseIn 0.9s ease forwards 0.62s;
}

body.is-ready .reveal-on-load .hero-portrait-line {
  animation: riseIn 1s ease forwards 0.42s;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.88;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 238, 249, 0.7);
}

.hero-copy,
.section-heading p,
.about-copy p,
.timeline-item p,
.skill-card p,
.empty-state p,
.admin-copy,
.status-box,
.item-card p,
.stat-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 620px;
  margin-top: 22px;
  font-size: 1rem;
}

.hero-actions,
.contact-links,
.dashboard-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-color: transparent;
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.section {
  padding: 86px 0;
}

.section-surface {
  background: rgba(255, 255, 255, 0.02);
}

.section-kicker,
.mini-kicker,
.pill,
.timeline-year,
.timeline-org,
.metric-card span,
.inline-link,
.footer-inner p,
.tag-row span {
  font-family: var(--font-mono);
}

.section-kicker,
.mini-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.center {
  text-align: center;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.about-copy h2,
.contact-box h2,
.admin-login-card h1,
.dashboard-header h1,
.panel-header h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.95;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 16px 0;
  animation: ticker 26s linear infinite;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-shadow: 0 0 40px rgba(122, 57, 186, 0.08);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-row span,
.pill {
  border: 1px solid var(--line-strong);
  color: var(--accent-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-cool);
  border-bottom: 1px solid rgba(196, 140, 255, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.work-block,
.admin-panel,
.admin-login-card,
.metric-card,
.setup-banner,
.status-box,
.card,
.item-card {
  background: linear-gradient(180deg, rgba(27, 17, 41, 0.88), rgba(16, 8, 23, 0.97));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card {
  border-radius: 22px;
  padding: 18px;
}

.work-block {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 30px;
  margin-top: 28px;
  transform: translateY(0);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.work-block:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 140, 255, 0.24);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.32);
}

.block-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.block-header h3,
.panel-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.95;
}

.media-grid {
  display: grid;
  gap: 20px;
}

.photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-card,
.stat-card,
.empty-state,
.item-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 184, 154, 0.12);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.media-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 140, 255, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.media-thumb {
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, rgba(196, 140, 255, 0.18), rgba(59, 15, 99, 0.24));
}

.video-thumb {
  aspect-ratio: 16 / 10;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.media-card:hover .media-thumb img,
.media-card:hover .media-thumb video {
  transform: scale(1.05);
}

.media-card-content,
.stat-card,
.empty-state,
.item-card {
  padding: 18px;
}

.media-card h4,
.stat-card h4,
.empty-state h4,
.item-card h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-meta span,
.item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.stat-card strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}

.stat-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-cool);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
  border-color: rgba(196, 140, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-year,
.timeline-org,
.metric-card span,
.footer-inner p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.skills-stage {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(196, 140, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(27, 17, 41, 0.9), rgba(16, 8, 23, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.skills-stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.skills-stage-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.skills-stage-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.skills-orbit {
  position: relative;
  min-height: 560px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(196, 140, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(196, 140, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
}

.skills-orbit::before,
.skills-orbit::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  border: 1px solid rgba(196, 140, 255, 0.08);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.skills-orbit::before {
  width: 260px;
  height: 260px;
}

.skills-orbit::after {
  width: 420px;
  height: 420px;
}

.skill-chip {
  position: absolute;
  width: min(228px, calc(100% - 28px));
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(196, 140, 255, 0.16);
  background: rgba(14, 8, 21, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    filter 0.3s ease,
    opacity 0.3s ease;
  will-change: transform;
  cursor: pointer;
  z-index: 1;
}

.skill-chip:hover {
  border-color: rgba(196, 140, 255, 0.3);
  background: rgba(22, 12, 34, 0.94);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.skill-chip:focus-visible {
  outline: 2px solid rgba(196, 140, 255, 0.55);
  outline-offset: 4px;
}

.skills-orbit.focus-mode .skill-chip {
  filter: blur(5px) saturate(0.8);
  opacity: 0.34;
}

.skills-orbit.focus-mode .skill-chip.is-active {
  filter: none;
  opacity: 1;
  z-index: 8;
  border-color: rgba(196, 140, 255, 0.38);
  background: rgba(28, 15, 41, 0.98);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.skill-chip:nth-child(1) {
  top: 7%;
  left: 5%;
}

.skill-chip:nth-child(2) {
  top: 8%;
  right: 6%;
}

.skill-chip:nth-child(3) {
  top: 36%;
  left: 10%;
}

.skill-chip:nth-child(4) {
  top: 34%;
  right: 9%;
}

.skill-chip:nth-child(5) {
  bottom: 7%;
  left: 22%;
}

.skill-chip:nth-child(6) {
  bottom: 9%;
  right: 20%;
}

.skill-chip-index {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-cool);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.skill-chip h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.skill-chip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.section-contact {
  padding-bottom: 110px;
}

.contact-box {
  position: relative;
  text-align: center;
  padding: clamp(32px, 4vw, 54px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top center, rgba(122, 57, 186, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(27, 17, 41, 0.85), rgba(16, 8, 23, 0.97));
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 140, 255, 0.18), transparent 68%);
  filter: blur(10px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.setup-banner,
.status-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
}

.setup-banner code {
  font-family: var(--font-mono);
}

.admin-body {
  min-height: 100vh;
  padding: 28px 0;
}

.admin-shell {
  width: min(1280px, calc(100vw - 28px));
  margin: 0 auto;
}

.admin-login-card {
  width: min(560px, 100%);
  margin: 40px auto;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 38px);
  display: grid;
  gap: 20px;
}

.dashboard {
  display: grid;
  gap: 22px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 10px 0 4px;
}

.dashboard-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  border-radius: 22px;
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.admin-section-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
  border-radius: 28px;
  padding: 24px;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form span {
  color: var(--text);
  font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(201, 184, 154, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: rgba(196, 140, 255, 0.65);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.two-column-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.item-card {
  display: grid;
  gap: 14px;
}

.item-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.item-actions .button {
  min-height: 40px;
  padding-inline: 16px;
}

.status-success {
  border-color: rgba(107, 192, 129, 0.35);
}

.status-error {
  border-color: rgba(255, 119, 119, 0.35);
}

.reveal-item {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-group .reveal-item:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-group .reveal-item:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-group .reveal-item:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-group .reveal-item:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-group .reveal-item:nth-child(6) {
  transition-delay: 0.4s;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  from {
    transform: translateX(-35%);
  }

  to {
    transform: translateX(135%);
  }
}

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

  body::before {
    display: none;
  }

  .reveal-item,
  .reveal-on-load .hero-kicker,
  .reveal-on-load .hero-title-line,
  .reveal-on-load .hero-copy-line,
  .reveal-on-load .hero-actions-line,
  .reveal-on-load .hero-portrait-line {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-nav,
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .about-grid,
  .timeline-item,
  .admin-section-grid,
  .dashboard-metrics,
  .two-column-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-portrait-wrap {
    justify-content: flex-start;
  }

  .hero-portrait-card {
    width: min(100%, 320px);
  }

  .block-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-stage {
    grid-template-columns: 1fr;
  }

  .skills-orbit {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .skills-orbit::before,
  .skills-orbit::after {
    display: none;
  }

  .skill-chip {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 640px) {
  .container,
  .admin-shell {
    width: min(100vw - 24px, 1180px);
  }

  .site-nav {
    padding-inline: 12px;
    gap: 12px;
  }

  .nav-logo-badge {
    width: 68px;
    height: 38px;
  }

  .nav-logo-image {
    max-width: 68px;
    max-height: 38px;
  }

  .nav-links {
    gap: 0.8rem;
    width: 100%;
    justify-content: space-between;
  }

  .section,
  .section-contact {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 52px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy-stack {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 20vw, 5.2rem);
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions,
  .contact-links {
    width: 100%;
  }

  .hero-actions .button,
  .contact-links .button {
    flex: 1 1 100%;
  }

  .hero-portrait-card {
    width: min(100%, 260px);
    border-radius: 22px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .timeline-item {
    gap: 14px;
    padding: 18px;
  }

  .timeline-item h3 {
    font-size: 1.6rem;
  }

  .stats-grid,
  .photo-grid,
  .video-grid,
  .skills-orbit {
    grid-template-columns: 1fr;
  }

  .work-block,
  .admin-panel,
  .admin-login-card {
    border-radius: 22px;
  }
}
