/* =================================================================
   Reset & base
   ================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #050507;
  --fg: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --soft: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --maxw: 1400px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tr: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--tr); }
a:hover { opacity: 0.7; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }

/* =================================================================
   Mercury — ртутные шары на общем фоне, НЕ пробивают карточки
   ================================================================= */
.mercury {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Контент поверх mercury */
.site-header, .hero, .work, .about, .contact, .site-footer { position: relative; z-index: 1; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 60%
  );
  transition: background-color 700ms ease, background 700ms ease;
}
.orb-1 { width: 520px; height: 520px; background-color: #b8b8c4; top: -10%; left: -8%; animation: float1 22s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; background-color: #8e8e9a; top: 30%; right: -6%; animation: float2 28s ease-in-out infinite; }
.orb-3 { width: 460px; height: 460px; background-color: #6c6c78; bottom: -8%; left: 30%; animation: float3 25s ease-in-out infinite; }
.orb-4 { width: 320px; height: 320px; background-color: #c8c8d4; top: 55%; left: -4%; animation: float4 30s ease-in-out infinite; }
.orb-5 { width: 280px; height: 280px; background-color: #9898a4; top: 10%; right: 20%; animation: float5 26s ease-in-out infinite; }

/* Цветной режим — розово-оранжевый fade ВНУТРИ каждого шара + плавный сдвиг */
.mercury.color .orb {
  background: radial-gradient(circle at 30% 30%, #ff1a6b 0%, #ff3d6e 25%, #ff5a1f 65%, #ff7a00 100%);
  background-size: 240% 240%;
  background-position: 0% 50%;
  opacity: 0.95;
}
.mercury.color .orb-1 { animation: float1 22s ease-in-out infinite, colorShift1 9s ease-in-out infinite; }
.mercury.color .orb-2 { animation: float2 28s ease-in-out infinite, colorShift2 11s ease-in-out infinite; }
.mercury.color .orb-3 { animation: float3 25s ease-in-out infinite, colorShift3 13s ease-in-out infinite; }
.mercury.color .orb-4 { animation: float4 30s ease-in-out infinite, colorShift1 10s ease-in-out infinite; }
.mercury.color .orb-5 { animation: float5 26s ease-in-out infinite, colorShift2 12s ease-in-out infinite; }

@keyframes colorShift1 {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes colorShift2 {
  0%, 100% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
}
@keyframes colorShift3 {
  0%, 100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(140px,80px) scale(1.1);} 66%{transform:translate(-60px,160px) scale(.92);} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-120px,-100px) scale(1.15);} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1);} 25%{transform:translate(100px,-80px) scale(.95);} 75%{transform:translate(-80px,60px) scale(1.1);} }
@keyframes float4 { 0%,100%{transform:translate(0,0) scale(1);} 40%{transform:translate(80px,-120px) scale(1.1);} 80%{transform:translate(-40px,40px) scale(.9);} }
@keyframes float5 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-100px,100px) scale(1.2);} }

@media (prefers-reduced-motion: reduce) { .orb { animation: none !important; } }
@media (max-width: 720px) {
  .orb-1, .orb-2, .orb-3 { opacity: 0.55; filter: blur(60px); }
  .orb-1 { width: 200px; height: 200px; }
  .orb-2 { width: 160px; height: 160px; }
  .orb-3 { width: 180px; height: 180px; }
  .orb-4, .orb-5 { display: none; }
}

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); height: 68px; }
.brand { font-weight: 800; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); }
.nav { display: flex; gap: var(--space-3); font-size: 0.85rem; letter-spacing: 0.05em; font-weight: 400; }
.nav a { position: relative; padding: 4px 0; opacity: 0.75; }
.nav a:hover { opacity: 1; }

/* Переключатель серые/цветные пятна — справа в шапке */
.mercury-toggle {
  position: relative;
  width: 56px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
}
.mercury-toggle::before {
  content: "";
  position: absolute;
  inset: 2px 28px 2px 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6c6c78 0%, #b8b8c4 100%);
  transition: inset 350ms cubic-bezier(0.2, 0.7, 0.2, 1), background 350ms ease;
  filter: blur(0.4px);
}
.mercury-toggle[aria-pressed="true"]::before {
  inset: 2px 2px 2px 28px;
  background: linear-gradient(135deg, #ff5b8d 0%, #ff8c42 100%);
}
.mercury-toggle:hover { border-color: rgba(255,255,255,0.35); }
.mercury-toggle-knob { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =================================================================
   Hero
   ================================================================= */
.hero { padding: clamp(4rem, 12vw, 9rem) 0 clamp(2rem, 6vw, 4rem); }
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-3); font-weight: 500; }
.hero-name {
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.95;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-name .hero-tag {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-name .hero-tagline {
  display: block;
  font-size: 0.32em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 0.15em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}
.hero-tagline { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 300; max-width: 700px; color: rgba(255,255,255,0.75); margin: 0 0 var(--space-4); }

/* =================================================================
   Work
   ================================================================= */
.work { padding: clamp(2rem, 6vw, 5rem) 0; }
.sections { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5rem); }

.section-head {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.section-head .count { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

.empty, .loading { padding: var(--space-5) 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* =================================================================
   Carousel — горизонтальная прокрутка со стрелками
   ================================================================= */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 600;
  z-index: 5;
  transition: background var(--tr), transform var(--tr), opacity var(--tr);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}

.carousel-arrow:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-50%) scale(1.05); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

@media (max-width: 720px) {
  .carousel-arrow {
    width: 40px; height: 40px; font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

/* =================================================================
   Card — full B&W image, компактный текст снизу
   ================================================================= */
.card {
  flex: 0 0 calc(50% - 0.75rem);
  min-width: 360px;
  scroll-snap-align: start;
  position: relative;
  z-index: 2;
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0e;
  border: 1px solid var(--line);
  transition: transform var(--tr), border-color var(--tr);
  text-align: left;
  padding: 0;
  isolation: isolate;
}

.section { position: relative; z-index: 1; }
.card:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0e;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-play {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  color: #000;
  font-size: 0.85rem;
  transition: opacity var(--tr), transform var(--tr);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
}

/* Текст с soft glow вокруг букв — никаких панелей и блюров-полос */
.card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
  z-index: 3;
  pointer-events: none;
  /* Тонкий градиент только в самом низу карточки */
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.card-title {
  font-weight: 800;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    0 2px 16px rgba(0,0,0,0.9),
    0 0 4px rgba(0,0,0,0.7),
    0 1px 2px rgba(0,0,0,0.8);
}
.card-desc {
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 100%;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  text-shadow:
    0 1px 8px rgba(0,0,0,0.95),
    0 0 3px rgba(0,0,0,0.8);
}

/* =================================================================
   About / Contact / Footer
   ================================================================= */
.about { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.about-inner { max-width: 760px; }
.about-text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0; font-weight: 300; }

.contact { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.contact-inner { max-width: 760px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); margin-top: var(--space-3); }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.025); transition: background var(--tr), border-color var(--tr), transform var(--tr); }
.contact-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); opacity: 1; }
.contact-link svg { width: 22px; height: 22px; flex: 0 0 22px; color: rgba(255,255,255,0.85); }
.contact-link .label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; font-weight: 500; }
.contact-link .value { font-size: 0.9rem; color: var(--fg); font-weight: 400; overflow-wrap: anywhere; word-break: break-word; }
.contact-link .body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }

.site-footer { border-top: 1px solid var(--line); padding: var(--space-3) 0; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.muted { color: var(--muted); }

/* =================================================================
   Modal
   ================================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-3);
  opacity: 0;
  transition: opacity 200ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal.is-open { display: flex; opacity: 1; }
.modal-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; border-radius: 50%; font-size: 1.3rem; line-height: 1; display: grid; place-items: center; z-index: 2; transition: background var(--tr); cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,0.18); }
.modal-content { width: 100%; max-width: 1280px; display: flex; flex-direction: column; gap: var(--space-2); color: #fff; }
.modal-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.modal-video iframe, .modal-video video, .modal-video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.modal-meta h3 { font-weight: 700; font-size: 1.5rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.modal-meta p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.6; font-weight: 300; }

/* =================================================================
   Admin
   ================================================================= */
.admin { max-width: 1000px; margin: 0 auto; padding: var(--space-4) var(--space-3); }
.admin h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 var(--space-2); letter-spacing: -0.025em; }
.admin .lead { color: var(--muted); margin: 0 0 var(--space-3); font-weight: 300; }
.login-card, .panel-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); background: rgba(255,255,255,0.02); margin-bottom: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); }
.field label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.04); color: var(--fg); width: 100%; font-family: var(--sans); font-weight: 300; transition: border-color var(--tr), background var(--tr); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.field textarea { min-height: 96px; resize: vertical; }

.btn { display: inline-block; font: inherit; padding: 12px 22px; background: #fff; color: #0a0a0a; border: 1px solid #fff; border-radius: var(--radius); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; transition: background var(--tr), color var(--tr), transform var(--tr); cursor: pointer; }
.btn:hover { background: rgba(255,255,255,0.85); transform: translateY(-1px); }
.btn.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }
.btn.btn-danger { background: transparent; color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.btn.btn-danger:hover { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.5); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.row.between { justify-content: space-between; }

.item { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2); margin-bottom: var(--space-2); display: grid; grid-template-columns: 180px 1fr auto; gap: var(--space-2); align-items: center; background: rgba(255,255,255,0.02); }
.item .thumb { width: 180px; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); overflow: hidden; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.item .info h4 { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.item .info p { font-size: 0.85rem; color: var(--muted); margin: 0; font-weight: 300; }
.item .actions { display: flex; flex-direction: column; gap: 6px; }
.badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.notice { border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--space-2); color: var(--muted); font-size: 0.9rem; background: rgba(255,255,255,0.02); }
.notice strong { color: var(--fg); }
.notice a { color: #fff; border-bottom: 1px solid currentColor; }
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.85rem; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }

.section-block { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2); margin-bottom: var(--space-2); background: rgba(255,255,255,0.02); }
.section-block header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); flex-wrap: wrap; gap: var(--space-2); }
.section-block h3 { font-weight: 800; font-size: 1.35rem; margin: 0; letter-spacing: -0.02em; }

.dropzone {
  border: 1.5px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dropzone:hover, .dropzone.is-dragover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); color: var(--fg); }
.dropzone .dz-icon { font-size: 2.5rem; line-height: 1; }
.dropzone .dz-text { font-size: 0.9rem; line-height: 1.5; }
.dropzone .dz-text strong { color: var(--fg); font-weight: 600; }
.dropzone-preview { max-width: 100%; max-height: 200px; margin-top: 12px; border-radius: var(--radius); display: block; margin-left: auto; margin-right: auto; }
.dz-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 720px) {
  .header-inner { height: 60px; }
  .nav { gap: var(--space-2); font-size: 0.78rem; }
  .mercury-toggle { width: 48px; height: 24px; }
  .mercury-toggle[aria-pressed="true"]::before { inset: 2px 2px 2px 24px; }
  .mercury-toggle::before { inset: 2px 24px 2px 2px; }
  .hero { padding-top: 3rem; }
  .hero-name .hero-tagline { font-size: 0.38em; }
  .card { flex: 0 0 88%; }
  .card-overlay { padding: 1rem 1.25rem; }
  .card-title { font-size: 1.4rem; }
  .card-desc { font-size: 0.85rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .card { flex: 0 0 88%; }
  .item { grid-template-columns: 1fr; }
  .item .thumb { width: 100%; }
  .item .actions { flex-direction: row; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }
}
