/* BACCARA Beauty Studio Styling Refinements & Media Enhancements */

:root {
  --black: #0d0d0c;
  --paper: #ede9e2;
  --gold: #c6a36a;
  --gold-glow: rgba(198, 163, 106, 0.25);
  --muted: #a7a198;
  --line: rgba(237, 233, 226, 0.14);
}

/* Header & Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.4s ease;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.05);
}

/* Generator & City Badges */
.badge-generator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 10px/1 'DM Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(198, 163, 106, 0.12);
  color: var(--gold);
  border: 1px solid rgba(198, 163, 106, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  width: fit-content;
}
.badge-generator .pulse {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero media real visual */
.hero-image {
  background: #151514;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 163, 106, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.hero-image img.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.hero-image:hover img.hero-bg {
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,12,0.4) 0%, rgba(13,13,12,0.1) 50%, rgba(13,13,12,0.85) 100%);
  pointer-events: none;
}
.hero-bottom-tag {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font: 500 11px 'DM Mono', monospace;
  letter-spacing: 1.5px;
  color: var(--paper);
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-bottom-tag::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
}

/* Service Cards */
.service-card {
  grid-template-columns: 45px 1fr 40px;
  text-decoration: none;
  background: #141413;
  transition: all 0.35s ease;
  position: relative;
}
.service-card:hover {
  padding-left: 20px;
  background: #1c1b19;
  border-color: rgba(198, 163, 106, 0.4);
}
.service-bg-thumb {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  opacity: 0.18;
  mask-image: linear-gradient(to right, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
  pointer-events: none;
}
.service-card:hover .service-bg-thumb {
  opacity: 0.38;
  transform: scale(1.05);
}
.service-main {
  height: 240px;
  border-color: var(--gold);
}
.service-main .service-bg-thumb {
  opacity: 0.28;
  width: 50%;
}
.service-main:hover .service-bg-thumb {
  opacity: 0.45;
}
.service-card b {
  display: inline-block;
  font-size: 18px;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.3s ease;
}
.service-card:hover b {
  transform: translateX(4px);
}

/* Master Cards */
.master {
  background: #141413;
  border: 1px solid var(--line);
  padding: 14px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.master:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.master-photo {
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #181817;
  border: 1px solid #2d2c28;
}
.master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) brightness(0.92);
  transition: transform 0.8s ease, filter 0.8s ease;
}
.master:hover .master-photo img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}

.master-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 13, 12, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 500 9px 'DM Mono', monospace;
  padding: 4px 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.master p {
  margin-top: 14px;
  color: var(--gold);
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 1.2px;
}
.master h3 {
  font-size: 22px;
  margin: 6px 0;
  letter-spacing: -0.5px;
}
.master span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* Gallery / Atmosphere */
.gallery figure {
  overflow: hidden;
  background: #181817;
  border: 1px solid #383630;
  position: relative;
}
.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.gallery figure:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.gallery figure:hover {
  border-color: var(--gold);
}

/* Booking & Contacts section */
.booking {
  background: #141413;
  border-top: 1px solid var(--line);
}
.booking-copy {
  background: #10100f;
  color: var(--paper);
  border: 1px solid rgba(198, 163, 106, 0.3);
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.booking-copy > p {
  color: var(--muted);
}
.contact-placeholders {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}
.contact-item {
  display: grid;
  gap: 5px;
}
.contact-item b {
  font: 800 10px 'DM Mono', monospace;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
}
.contact-item span,
.contact-item a {
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s;
}
.contact-item a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.social-buttons {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}
.instagram-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(198, 163, 106, 0.4);
  background: #171716;
  border-radius: 50%;
  color: var(--gold);
  transition: all 0.3s ease;
  text-decoration: none;
}
.instagram-round:hover {
  background: var(--gold);
  color: #10100f;
  transform: translateY(-2px);
}
.online-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 12px 20px;
  text-decoration: none;
  font: 700 10px 'DM Mono', monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 24px;
}
.online-booking-btn:hover {
  background: var(--gold);
  color: #10100f;
}

/* Form refinement */
.booking-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.booking-form label small {
  color: var(--muted);
  font-weight: 400;
}
.booking-form input,
.booking-form textarea {
  background: #171716;
  border: 1px solid #3c3b37;
  border-radius: 0;
  color: var(--paper);
  transition: border-color 0.25s ease;
}
.booking-form input:focus,
.booking-form textarea:focus {
  border-color: var(--gold);
  background: #1c1b1a;
}
.booking-form .button {
  background: var(--gold);
  color: #17130e;
  transition: all 0.3s ease;
}
.booking-form .button:hover {
  background: #d8b883;
}
.booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #667678;
  font-weight: 400 !important;
  line-height: 1.5;
}
.booking-consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #1d878c; flex: 0 0 auto; }
.booking-consent a { color: #1d878c; text-underline-offset: 3px; }
.legal-page { max-width: 850px; margin: 0 auto; padding: 130px 6vw 90px; }
.legal-page h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -3px; line-height: .95; margin: 0 0 45px; }
.legal-page h2 { font-size: 24px; letter-spacing: -1px; margin: 40px 0 13px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: 22px; }
.legal-page .legal-note { border-left: 2px solid var(--gold); padding-left: 18px; color: var(--paper); }
@media (max-width: 800px) { .booking-consent { font-size: 10px !important; } .legal-page { padding-top: 110px; } }
.form-note.success {
  color: #92e09b !important;
  font-weight: 600;
}

/* Calculator: confirmed military discount */
.military-discount {
  grid-column: 1 / -1;
  border: 1px solid rgba(198, 163, 106, .5);
  background: rgba(198, 163, 106, .08);
  padding: 16px !important;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.military-discount input { accent-color: var(--gold); width: 18px; height: 18px; }
.military-discount span { display: grid; gap: 4px; }
.military-discount b { color: var(--paper); font-size: 12px; }
.military-discount small { color: var(--muted); font-size: 10px; }
.reviews-google-link {
  display: table;
  margin: 30px auto 0;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Pitch / Prototype Notice Badge */
.pitch-badge {
  font: 500 9px 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ── Mobile fixes ─────────────────────────────────────── */
@media (max-width: 800px) {

  /* ── Service cards ── */
  .service-card {
    grid-template-columns: 40px 1fr 30px;
    min-height: auto;
    padding: 18px 12px;
  }

  /* Remove fixed height on the hero service card */
  .service-main {
    height: auto !important;
    min-height: auto;
    padding: 18px 12px;
  }

  /* Reset absolute positioning so content flows naturally */
  .service-main .service-content {
    position: static !important;
  }

  .service-main h3 {
    font-size: 26px !important;
    letter-spacing: -1px;
  }

  .service-main b {
    position: static !important;
    display: inline-block;
    margin-top: 6px;
    font-size: 18px;
  }

  .service-content {
    padding-bottom: 4px;
  }

  .service-card h3 {
    font-size: 18px;
    letter-spacing: -0.5px;
    margin: 0 0 4px;
  }

  .service-card p {
    font-size: 11px;
    line-height: 1.55;
    color: var(--muted);
  }

  /* Hide background thumb images on mobile (already set, ensuring) */
  .service-bg-thumb {
    display: none;
  }

  /* ── Masters: side-by-side layout ── */
  .master-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .master-photo,
  .master-role-visual {
    height: 180px !important;
    min-height: 180px;
  }

  .master-role-visual svg {
    width: 52px;
    height: 52px;
  }

  .master {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0 14px;
    align-items: start;
  }

  .master-photo {
    grid-row: 1 / 5;
    height: 180px;
  }

  .master p {
    margin-top: 14px;
  }

  .master span {
    font-size: 11px;
  }


  /* Hero image full width */
  .hero-image {
    width: 100%;
  }

  /* Nav: hide long calc link on tiny screens */
  .site-header nav a[href="#calculator"] {
    display: none;
  }
}

/* Very small phones: fully stack master cards */
@media (max-width: 500px) {
  .master {
    display: block;
  }

  .master-photo,
  .master-role-visual {
    height: 160px !important;
    min-height: 160px;
  }

  .master p {
    margin-top: 12px;
  }
}

/* ── Team: touch-first grouped carousels ───────────────── */
.master-list { display: grid; grid-template-columns: 1fr; gap: 76px; }
.team-group { min-width: 0; }
.team-group-heading { margin: 0 0 24px; }
.team-group-heading h3 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.5px; margin: 0; }
.team-group-heading > p:last-child { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.team-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 27vw); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 2px 12px; }
.team-track::-webkit-scrollbar { display: none; }
.team-track .master { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(118px, auto); width: auto; min-height: 0; scroll-snap-align: start; transform: none; }
.team-track .master:hover { transform: none; }
.team-track .master-photo { grid-row: auto !important; height: auto !important; min-height: 0 !important; aspect-ratio: 2 / 3; background: #191816; display: grid; place-items: center; }
.team-track .master-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none; }
.team-track .master:hover .master-photo img { transform: none; filter: none; }
.team-track .master p { margin: 10px 0 0; font-size: 9px; letter-spacing: 0.8px; line-height: 1.5; word-break: break-word; overflow-wrap: break-word; }
.team-track .master > span { align-self: start; }
.team-track .master-copy { grid-row: 2; min-height: 100px; overflow: hidden; padding-bottom: 10px; }

.review-track { touch-action: pan-y; user-select: none; }
/* Stacked carousel, without scale or filters: every review stays the same physical size. */
.review-card { height: 280px; min-height: 0 !important; transition: transform .55s cubic-bezier(.22,.8,.25,1), opacity .35s ease !important; filter: none !important; backface-visibility: hidden; will-change: transform, opacity; }
.hero { padding-top: 112px; }

@media (max-width: 800px) {
  .master-list { gap: 54px; }
  .team-track { grid-auto-columns: 78vw; gap: 14px; margin-right: -6vw; padding-right: 6vw; }
  .team-track .master { width: 100% !important; box-sizing: border-box; }
  .team-track .master { padding: 10px; }
  .team-track .master h3 { font-size: 19px; }
  .team-track .master span { font-size: 11px; }
  .review-card { height: 285px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 104px; }
  .team-group-heading h3 { font-size: 30px; }
  footer { height: auto; min-height: 0; flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
  footer > div { width: 100%; flex-wrap: wrap; justify-content: flex-start; row-gap: 10px; }
}

/* ── Master Details Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 13, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background: #141413;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  border: 1px solid var(--gold);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-overlay.open .modal-container {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(20, 20, 19, 0.8);
  border: 1px solid rgba(198, 163, 106, 0.4);
  color: var(--paper);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.modal-close:hover {
  background: var(--gold);
  color: #10100f;
}
.modal-scroll-area {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-hero {
  height: 320px;
  position: relative;
}
.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #141413 100%);
}
.modal-body-content {
  padding: 0 35px 40px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
#modal-badge {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin-bottom: 12px;
}
.modal-role {
  font: 500 10px 'DM Mono', monospace;
  color: var(--gold);
  letter-spacing: 1.2px;
  margin: 20px 0 6px;
}
.modal-body-content h2 {
  font-size: 32px;
  margin: 0 0 24px;
  letter-spacing: -1px;
}
.modal-text-details {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.modal-text-details p {
  margin-bottom: 16px;
}
.modal-text-details ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.modal-text-details li {
  margin-bottom: 6px;
}
.modal-text-details b, .modal-text-details strong {
  color: var(--paper);
  font-weight: 600;
}
.modal-action {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.modal-action .button {
  width: 100%;
  font-size: 11px;
  padding: 16px;
}
.master-card-interactive {
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-container { max-height: 85vh; border-bottom: none; border-left: none; border-right: none; border-radius: 20px 20px 0 0; }
  .modal-hero { height: 260px; }
  .modal-body-content { padding: 0 25px 30px; }
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM DROPDOWNS
   ═══════════════════════════════════════════════════════════ */

.custom-select-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.custom-select-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
}
.custom-dropdown.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}
.dropdown-header:hover {
  border-color: var(--gold);
}
.custom-dropdown.open { z-index: 200; }
.custom-dropdown.open .dropdown-header {
  border-color: var(--gold);
  background: rgba(198, 163, 106, 0.03);
}
.dropdown-header svg {
  transition: transform 0.3s;
  color: var(--gold);
}
.custom-dropdown.open .dropdown-header svg {
  transform: rotate(180deg);
}
.dropdown-list-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111; /* Solid dark background */
  border: 1px solid var(--gold);
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 100;
}
.custom-dropdown.open .dropdown-list-wrapper {
  max-height: 280px;
}
.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}
/* Scrollbar */
.dropdown-list::-webkit-scrollbar {
  width: 4px;
}
.dropdown-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
.dropdown-list::-webkit-scrollbar-thumb {
  background: var(--gold);
}
.dropdown-item {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--paper);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover, .dropdown-item.selected {
  background: rgba(198, 163, 106, 0.1);
  color: var(--gold);
  padding-left: 24px;
}

/* ═══════════════════════════════════════════════════════════
   MASTER CARD — ДЕТАЛЬНІШЕ BUTTON
   ═══════════════════════════════════════════════════════════ */

.master-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(198, 163, 106, 0.4);
  color: var(--gold);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  padding-bottom: 2px;
}
.master-more-btn:hover {
  border-bottom-color: var(--gold);
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO GALLERY
   ═══════════════════════════════════════════════════════════ */

.gallery figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* Carousel Buttons */
.carousel-button {
  position: absolute;
  z-index: 15;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--paper);
  cursor: pointer;
  font-size: 21px;
  transition: .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-button:hover {
  background: var(--gold);
  color: #111;
}
.carousel-button.prev {
  left: 10px;
}
.carousel-button.next {
  right: 10px;
}
@media(max-width: 800px) {
  .carousel-button {
    width: 38px;
    height: 38px;
  }
}

/* Smooth fade-in for master cards & photos */
@keyframes masterCardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Individual masters: stay hidden, ignore default .reveal behaviour */
.team-track .master.reveal {
  opacity: 0;
  transform: none;
  transition: none;
}
.team-track .master.reveal.visible {
  opacity: 0;
  transform: none;
}

/* When parent team-group becomes visible → animate ALL its cards together */
.team-group.visible .team-track .master {
  animation: masterCardIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
  opacity: 0;
}

/* Photos: fade in with their card */
.team-track .master-photo img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}
.team-group.visible .team-track .master-photo img {
  opacity: 1;
  transform: scale(1);
}
