/* ════════════════════════════════════════════
   Arzhanov Portfolio — clean single-pass CSS
   Indigo and peach palette
   ════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:           #2d3250;
  --surface:      #424769;
  --surface-2:    #676f9d;
  --ink:          #ffffff;
  --muted:        rgba(255, 255, 255, 0.68);
  --line:         rgba(255, 255, 255, 0.14);
  --accent:       #f9b17a;
  --accent-light: #ffc694;
  --image-bg:     #ffffff;
  --radius:       10px;
  --shadow:       0 24px 72px rgba(12, 16, 38, 0.38);
  --max:          1440px;
  --rail-w:       148px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

/* ── Typography ── */
h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.2;
}

.eyebrow, .role-line {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Layout wrapper ── */
.page-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(45, 50, 80, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease;
}
.brand:hover { opacity: 0.7; }

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #2d3250;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 160ms ease, transform 160ms ease;
}
.header-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Scroll rail ── */
.scroll-rail {
  position: fixed;
  left: 20px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}

.scroll-rail a {
  display: grid;
  grid-template-columns: 10px auto;
  gap: 8px;
  align-items: center;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.scroll-rail a span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--bg);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.scroll-rail:hover a { color: var(--muted); }

.scroll-rail a.is-active {
  color: var(--muted);
  transform: translateX(3px);
}
.scroll-rail a.is-active span {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.rail-line {
  position: absolute;
  left: 3px;
  top: 8px;
  z-index: -1;
  width: 1px;
  height: calc(100% - 16px);
  background: var(--line);
}
.rail-fill {
  display: block;
  width: 1px;
  height: var(--scroll-progress, 0%);
  background: var(--accent);
  transition: height 100ms linear;
}

/* ── Section base ── */
.page-section {
  scroll-margin-top: 70px;
}

.hero,
.section,
.contact-section,
.footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: calc(100svh - 70px);
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 880px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head p:not(.eyebrow),
.about-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.about-copy p + p { margin-top: 14px; }

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button:hover { background: var(--surface-2); transform: translateY(-1px); }

.button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #2d3250;
  font-weight: 700;
}
.button.primary:hover { background: var(--accent-light); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100svh - 70px);
  padding-block: clamp(40px, 6vw, 72px);
}

.hero-copy { max-width: 640px; }

.hero-note {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-stat strong {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}
.hero-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-mobile-cta { display: none; }

/* ── Hero stage / slider ── */
.hero-stage {
  position: relative;
}

.hero-slider {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slide { display: none; position: relative; }
.hero-slide.is-active {
  display: block;
  animation: slide-in 400ms cubic-bezier(.2,.7,.2,1) both;
}

.hero-slide img {
  width: 100%;
  height: min(56svh, 520px);
  min-height: 320px;
  object-fit: contain;
  background: var(--image-bg);
  cursor: zoom-in;
}

.slide-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(45, 50, 80, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.slide-caption span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.slide-caption strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.hero-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(45, 50, 80, 0.78);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  transition: background 160ms ease, transform 160ms ease;
}
.icon-button:hover { background: var(--accent); color: #2d3250; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 68px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.hero-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}
.hero-dot.is-active {
  width: 48px;
  background: var(--accent);
}

.telegram-cta {
  display: block;
  margin: 10px 10px 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #2d3250;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: opacity 160ms ease;
}
.telegram-cta:hover { opacity: 0.88; }

/* ── Method section ── */
.body-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.body-showcase figure,
.case-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.body-showcase img,
.body-showcase video {
  width: 100%;
  height: min(38svh, 340px);
  min-height: 220px;
  object-fit: contain;
  background: var(--image-bg);
  cursor: zoom-in;
}

figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
figcaption span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 620;
}
figcaption p { margin-bottom: 0; }

/* ── Portfolio carousel ── */
.portfolio {
  width: min(1580px, calc(100% - 32px));
  margin-inline: auto;
}

.work-carousel {
  position: relative;
  overflow: hidden;
}

.work-carousel::before,
.work-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 64px;
  pointer-events: none;
}
.work-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.work-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.work-track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  padding: 6px 48px 28px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }

.work-card {
  flex: 0 0 clamp(240px, 24vw, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), border-color 240ms ease, box-shadow 240ms ease;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 177, 122, 0.65);
  box-shadow: 0 28px 60px rgba(12, 16, 38, 0.42);
}

.work-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.work-img-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
}

.work-img-wrap img {
  width: 100%;
  height: clamp(260px, 34svh, 380px);
  object-fit: cover;
  background: var(--image-bg);
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-img-wrap img { transform: scale(1.04); }

.work-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 16px;
}

.work-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.work-card-info h3 {
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.15;
  margin-bottom: 0;
}

.work-cta {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.work-card:hover .work-cta {
  background: var(--accent);
  color: #2d3250;
  border-color: transparent;
}

.work-arrow {
  position: absolute;
  top: 44%;
  z-index: 6;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245,239,229,0.18);
  background: rgba(12, 10, 8, 0.82);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.work-arrow.left  { left: 8px; }
.work-arrow.right { right: 8px; }
.work-arrow:hover {
  background: var(--accent);
  color: #11100e;
  transform: translateY(-50%) scale(1.08);
}
.work-arrow[disabled] { opacity: 0.2; pointer-events: none; }

/* ── Featured case ── */
.case-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-strip img {
  width: 100%;
  height: min(42svh, 380px);
  min-height: 240px;
  object-fit: contain;
  background: var(--image-bg);
  cursor: zoom-in;
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-copy h2 { margin-bottom: 18px; }

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

.skill-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skill-grid span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skill-grid strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.3;
}
.skill-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ── Contact ── */
.contact-section {
  min-height: calc(100svh - 70px);
  padding-block: clamp(48px, 7vw, 80px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(66, 71, 105, 0.88), rgba(103, 111, 157, 0.42));
}

.contact-panel .eyebrow { color: var(--accent-light); }
.contact-panel h2 { margin-bottom: 0; }

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.contact-actions .button {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}
.contact-actions .button:hover { background: rgba(255, 255, 255, 0.12); }
.contact-actions .button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #2d3250;
}
.contact-actions .button.primary:hover { background: var(--accent-light); }

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a,
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: inherit;
  transition: color 150ms ease;
}
.footer-links a:hover,
.footer-link-button:hover { color: var(--ink); }

/* ── Gallery modal ── */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 140;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent);
  color: #2d3250;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 24px;
}
.gallery-modal.is-open {
  display: grid;
  place-items: center;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 50, 80, 0.82);
  backdrop-filter: blur(10px);
}

.gallery-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(860px, calc(100svh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: rgba(45, 50, 80, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.gallery-header h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.8vw, 38px);
}
.gallery-header .eyebrow { margin-bottom: 8px; }

.gallery-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  transition: background 160ms ease;
}
.gallery-close:hover { background: var(--surface-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5.34;
  object-fit: contain;
  background: var(--image-bg);
  cursor: zoom-in;
}

.gallery-grid figcaption {
  padding: 10px 14px 12px;
  font-size: 12px;
}

/* ── Lightbox ── */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 20px;
  background: rgba(45, 50, 80, 0.90);
  backdrop-filter: blur(14px);
}
.image-lightbox.is-open {
  display: grid;
  place-items: center;
}
.image-lightbox img {
  max-width: min(1180px, 100%);
  max-height: calc(100svh - 80px);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--image-bg);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.40);
}
.image-lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  transition: background 160ms ease;
}
.image-lightbox button:hover { background: var(--surface-2); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  animation: fade-up 580ms cubic-bezier(.2,.7,.2,1) both;
}

.reveal.is-visible .work-card,
.reveal.is-visible figure,
.reveal.is-visible .skill-grid > div,
.reveal.is-visible .contact-actions .button {
  animation: fade-up 600ms cubic-bezier(.2,.7,.2,1) both;
}

.reveal.is-visible .work-card:nth-child(2),
.reveal.is-visible figure:nth-child(2),
.reveal.is-visible .skill-grid > div:nth-child(2),
.reveal.is-visible .contact-actions .button:nth-child(2) { animation-delay: 80ms; }

.reveal.is-visible .work-card:nth-child(3),
.reveal.is-visible figure:nth-child(3),
.reveal.is-visible .skill-grid > div:nth-child(3),
.reveal.is-visible .contact-actions .button:nth-child(3) { animation-delay: 160ms; }

.reveal.is-visible .work-card:nth-child(4),
.reveal.is-visible .skill-grid > div:nth-child(4) { animation-delay: 240ms; }
.reveal.is-visible .work-card:nth-child(5),
.reveal.is-visible .skill-grid > div:nth-child(5) { animation-delay: 320ms; }
.reveal.is-visible .skill-grid > div:nth-child(6) { animation-delay: 400ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Desktop: offset for scroll rail ── */
@media (min-width: 981px) {
  .hero,
  .section,
  .contact-section,
  .footer {
    width: min(var(--max), calc(100% - var(--rail-w) - 32px));
    margin-left: var(--rail-w);
    margin-right: auto;
  }

  .portfolio {
    width: min(1580px, calc(100% - var(--rail-w) - 32px));
    margin-left: var(--rail-w);
  }
}

/* ── Tablet ── */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0;
    padding: 10px 18px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  .header-cta { display: none; }
  .scroll-rail { display: none; }

  .hero,
  .body-showcase,
  .case-strip,
  .about,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-stage { order: -1; }

  .portfolio { width: min(1580px, calc(100% - 32px)); margin-inline: auto; }
}

/* ── Mobile ── */
@media (max-width: 620px) {
  .hero,
  .section,
  .contact-section,
  .footer {
    width: calc(100% - 24px);
  }

  h1 { font-size: 36px; line-height: 1.05; }
  h2 { font-size: 28px; }

  .hero-mobile-cta {
    display: flex;
    width: 100%;
    margin-top: 4px;
  }

  .telegram-cta { display: none; }

  .nav a {
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .hero-slide img,
  .body-showcase img,
  .body-showcase video,
  .case-strip img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .skill-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .work-arrow { display: none; }

  .gallery-modal { padding: 10px; }
  .gallery-dialog { max-height: calc(100svh - 20px); }
  .gallery-grid { grid-template-columns: 1fr; padding: 12px; gap: 10px; }
  .gallery-header { padding: 14px 16px; }

  .footer { flex-direction: column; gap: 10px; }
}

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