/* ============================================
   PORTFOLIO — Anastasia Smirnova
   Multi-page · Dual theme · Serif + Sans
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .mobile-br {
    display: block;
  }
}

/* --- Dark Theme (default) --- */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #111;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --text: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #555;
  --accent: #6366F1;
  --accent-hover: #818cf8;
  --accent-2: #6366F1;
  --gradient: linear-gradient(135deg, #6366F1, #CE5296);
  --border: #222;
  --border-hover: #444;
  --tag-bg: rgba(99, 102, 241, 0.12);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --header-bg: rgba(10, 10, 10, 0.85);
  --btn-outline-hover-bg: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Inter', -apple-system, sans-serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-secondary: #ebebeb;
  --bg-card: #fff;
  --bg-card-hover: #f0f0f0;
  --text: #111;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #4B51D0;
  --accent-hover: #5b61e0;
  --gradient: linear-gradient(135deg, #4B51D0, #CE5296);
  --tag-bg: rgba(75, 81, 208, 0.08);
  --border: #ddd;
  --border-hover: #bbb;
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --header-bg: rgba(245, 245, 245, 0.85);
  --btn-outline-hover-bg: rgba(0, 0, 0, 0.04);
}

/* --- Typography --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
}

.section {
  padding: 100px 0;
}

.section--border {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.header__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: color var(--transition);
  text-decoration: none;
}

.header__name {
  display: none;
}

.header__logo svg {
  width: 30px;
  height: 30px;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: none;
}

.header__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.header__logo-img--dark {
  display: block;
}

.header__logo-img--light {
  display: none;
}

:root[data-theme="light"] .header__logo-img--dark {
  display: none;
}

:root[data-theme="light"] .header__logo-img--light {
  display: block;
}

/* Inline SVG logo */
.header__logo-svg {
  height: 28px;
  width: auto;
  margin-right: 10px;
}

.logo-body {
  fill: #4b51d0;
  transition: fill 0.3s ease;
}

.logo-face {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  stroke-width: 5px;
}

.logo-eye {
  fill: #fff;
}

.header__logo:hover .logo-body {
  fill: #ff74b8;
}

.header__logo:hover .logo-face {
  stroke: #000;
}

.header__logo:hover .logo-eye {
  fill: #000;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.header__link:hover,
.header__link.active {
  color: var(--text);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.header__link:hover::after,
.header__link.active::after {
  transform: scaleX(1);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header__ctrl {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.header__ctrl:hover {
  color: var(--text);
  border-color: var(--accent);
}

.header__ctrl svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
}

.header__cta:hover {
  background: var(--accent-hover);
}

/* --- Burger --- */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu Overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: flex;
  opacity: 1;
}

.mobile-overlay__link {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-overlay__link:hover {
  color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn--primary {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--primary .arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.btn--primary:hover .arrow {
  transform: translateX(4px);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--btn-outline-hover-bg);
}

.btn--ghost {
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--btn-outline-hover-bg);
}

.btn--ghost .arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

.btn svg {
  flex-shrink: 0;
}

/* ============================================
   TAGS
   ============================================ */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  background: var(--tag-bg);
  color: var(--accent);
  border-radius: 100px;
}

/* ============================================
   HERO — INDEX (Interactive Cards)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: background-color 0.4s ease;
}

/* Cards container */
.cards-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Individual card */
.hero .card {
  position: absolute;
  width: 280px;
  height: 157.5px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5) rotate(0deg);
  overflow: hidden;
  will-change: transform, opacity;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
}

.hero .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero .card.visible {
  animation: cardAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero .card__number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(var(--card-rotation, 0deg));
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(var(--card-rotation, 0deg));
  }
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(46px, 7vw, 106px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--text);
  opacity: 0;
  animation: heroFadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-secondary);
  opacity: 0;
  animation: heroFadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-actions {
  margin-top: 40px;
  opacity: 0;
  animation: heroFadeInUp 0.8s ease-out 0.7s forwards;
  pointer-events: auto;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.custom-cursor.active {
  opacity: 1;
}

/* Mobile static cards */
.hero .card--static {
  opacity: 1;
  transform: scale(1) rotate(var(--card-rotation, 0deg));
  animation: none;
}

@media (max-width: 1024px) {
  .hero .card {
    width: 224px;
    height: 126px;
  }
}

@media (max-width: 768px) {
  .hero .card {
    width: 168px;
    height: 94.5px;
  }

  .hero {
    cursor: default;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-description {
    font-size: 19px;
  }

  .custom-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .card {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) rotate(0deg) !important;
  }

  .hero-title,
  .hero-description {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   HIGHLIGHTS (Index page)
   ============================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight {
  padding: 24px 0;
  border-left: 2px solid var(--border);
  padding-left: 20px;
  transition: border-color var(--transition);
}

.highlight:hover {
  border-color: var(--accent);
}

.highlight__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.highlight__text {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================
   WORKS GALLERY (Index page)
   ============================================ */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 40px 20px;
  align-items: start;
}

.works-gallery__item {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.works-gallery__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 0;
}

.works-gallery__item:hover {
  transform: translateY(-4px);
}

.works-gallery__image {
  order: 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.works-gallery__item:hover .works-gallery__image {
  border-color: var(--border-hover);
}

.works-gallery__image .placeholder {
  aspect-ratio: 4/3;
  height: auto;
  transition: transform 0.5s ease;
}

.works-gallery__image img,
.works-gallery__image video {
  transition: transform 0.5s ease;
}

.works-gallery__item:hover .works-gallery__image .placeholder,
.works-gallery__item:hover .works-gallery__image img,
.works-gallery__item:hover .works-gallery__image video {
  transform: scale(1.05);
}

.works-gallery__meta {
  display: contents;
}

.works-gallery__name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  transition: color var(--transition);
  order: 1;
  padding: 0 4px 4px;
  align-self: start;
}

.works-gallery__desc {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color var(--transition);
  order: 2;
  padding: 0 4px 10px;
  align-self: start;
}

.works-gallery__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  order: 4;
  padding: 10px 4px 0;
  align-self: start;
}

.works-gallery__tag {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--tag-bg);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.works-gallery__item:hover .works-gallery__name {
  color: var(--accent);
}

/* ============================================
   EXPERIENCE CARDS
   ============================================ */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.exp-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.exp-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exp-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
}

.exp-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exp-card__logo svg {
  width: 100%;
  height: 100%;
}

.exp-card__logo--freelance {
  padding: 10px;
}

:root[data-theme="light"] .exp-card__logo:not(.exp-card__logo--freelance) img {
  filter: brightness(0) saturate(100%) opacity(0.7);
}

.exp-card__dates {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.exp-card__grade {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.exp-card__role {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.exp-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.exp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

.exp-card__company {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 500;
}

/* CV row under experience grid */
.exp-cv-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

/* ============================================
   FEATURED WORKS
   ============================================ */
.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.work-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.work-card__image img,
.work-card__image .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card__image img,
.work-card:hover .work-card__image .placeholder {
  transform: scale(1.05);
}

.work-card__info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.work-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.work-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  transition: color var(--transition);
}

.work-card:hover .work-card__title {
  color: var(--accent);
}

.work-card__badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
}

.work-card__client {
  font-size: 13px;
  color: var(--text-muted);
}

.work-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.work-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.work-card__cta .arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.work-card:hover .work-card__cta .arrow {
  transform: translateX(6px);
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.works-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ============================================
   ABOUT PREVIEW (Index page)
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-preview__photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
}

.about-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-preview__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-preview__content .btn {
  align-self: flex-start;
  margin-top: 24px;
}

.about-preview__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.about-preview__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- About Extras (Principles + Expertise) --- */
.about-extras {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 32px 64px;
  margin-top: 24px;
  justify-content: start;
  column-gap: 64px;
}

.about-extras__block--print {
  padding-top: 36px;
  margin-left: -40px;
}

.about-extras__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-extras__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-extras__list li {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-extras__columns {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 24px;
  justify-content: start;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section__header {
  margin-bottom: 48px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ============================================
   FOOTER / CONTACTS
   ============================================ */
.footer-contact {
  padding: 100px 0 0;
}

.footer-contact__header {
  text-align: center;
  margin-bottom: 56px;
}

.footer-contact__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}

.footer-contact__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.footer-contact__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__col--center {
  text-align: center;
  align-items: center;
  justify-content: space-between;
}

.footer-contact__logo {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}

.footer-contact__logo.spinning {
  animation: spinLogo 1s linear infinite;
}

.footer-contact__logo.spin-finish {
  animation: spinLogo 1s linear 1;
}

@keyframes spinLogo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.footer-contact__col--right {
  text-align: right;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-contact__link {
  font-size: 16px;
  color: var(--text);
  transition: color var(--transition);
}

.footer-contact__link:hover {
  color: var(--accent);
}

.footer {
  padding: 32px 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.4s ease;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   PLACEHOLDERS
   ============================================ */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.2;
}

.placeholder--kaspersky { background: linear-gradient(135deg, #0d2137, #1a3a5c); }
.placeholder--bismut    { background: linear-gradient(135deg, #1a1a2e, #2e1a3a); }
.placeholder--eco       { background: linear-gradient(135deg, #1a2e1a, #2e3a1a); }
.placeholder--mist      { background: linear-gradient(135deg, #2e2e2e, #1a1a1a); }
.placeholder--vuteam    { background: linear-gradient(135deg, #1a1a3e, #3e1a1a); }
.placeholder--dfi       { background: linear-gradient(135deg, #1e0a2e, #0a1e2e); }
.placeholder--fairy     { background: linear-gradient(135deg, #2e1a2a, #1a2a2e); }
.placeholder--neuro     { background: linear-gradient(135deg, #0e1e2e, #2e0e1e); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  width: 16px;
  height: 16px;
  background: var(--accent-2);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: exclusion;
}

.cursor-dot.visible {
  opacity: 1;
}

@media (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1440px) {
}

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .header__inner {
    padding: 0 32px;
    grid-template-columns: 1fr 1fr;
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__inner {
    padding: 60px 32px;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .about-preview {
    gap: 32px;
  }

  .footer-contact__row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact__col--center {
    order: -1;
  }

  .footer-contact__col,
  .footer-contact__col--center,
  .footer-contact__col--right {
    align-items: center;
    text-align: center;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header__inner {
    padding: 0 20px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .works-gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .exp-grid {
    grid-template-columns: 1fr;
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .works-gallery__tags {
    display: none;
  }

  .about-extras {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 28px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .about-extras__block:nth-child(1) {
    grid-row: 1 / 3;
  }

  .about-extras__block:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .about-extras__block--print {
    padding-top: 0;
    margin-left: 0;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .about-preview__photo {
    width: 100%;
    margin: 0;
  }

  .about-preview__content .btn {
    align-self: center;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 36px;
  }

  .footer-contact__title {
    font-size: 32px;
  }
}
