:root {
  --primary: rgb(186, 218, 241);
  --pink: rgb(225, 184, 214);
  --mauve: rgb(158, 104, 142);
  --lavender: rgb(190, 183, 217);
  --accent: rgb(56, 80, 156);
  --paper: rgb(249, 251, 255);
  --soft: rgb(246, 242, 250);
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: rgb(255, 255, 255);
  --ink: rgb(31, 39, 70);
  --muted-ink: rgb(67, 75, 111);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--primary);
}

main {
  flex: 1 0 auto;
}

.navbar {
  background: var(--soft);
  backdrop-filter: blur(10px);
}

.nav-link:hover {
  color: var(--pink);
}

.navbar-brand {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 180px;
  object-fit: contain;
}

img,
svg {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .navbar > .container {
    align-items: center;
  }

  .navbar-brand {
    flex: 0 0 auto;
    margin-right: 1rem;
  }

  .navbar-toggler {
    flex: 0 0 auto;
  }

  .navbar-collapse {
    flex-basis: 100%;
  }

  .navbar-nav {
    padding: 0.75rem 0 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.85rem 0;
    font-size: 1.08rem;
  }
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(56, 80, 156, 0.88), rgba(158, 104, 142, 0.62)),
    url("../images/studio-2.jpg") center / cover;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(56, 80, 156, 0.9), rgba(158, 104, 142, 0.64)),
    url("../images/studio-page-hero.jpg") center / cover;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  font-weight: 850;
}

.hero-logo {
  width: min(260px, 70vw);
  max-width: 100%;
  height: auto;
}

.cta-logo {
  width: min(190px, 58vw);
  height: auto;
}

.service-logo {
  width: 72px;
  height: 72px;
  display: block;
}

.btn-brand {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--pink);
  --bs-btn-hover-border-color: var(--pink);
  --bs-btn-color: var(--soft);
  --bs-btn-hover-color: var(--ink);
}

.section-soft {
  background: var(--soft);
}

.section-title {
  color: var(--accent);
  font-weight: 800;
}

.text-secondary {
  color: var(--muted-ink) !important;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--pink);
  border-radius: 8px;
  font-size: 1.4rem;
}

.bg-white {
  background-color: var(--surface-strong) !important;
}

.border {
  border-color: rgba(56, 80, 156, 0.18) !important;
}

.course-card,
.teacher-card {
  border: 1px solid rgba(56, 80, 156, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(31, 39, 70, 0.08);
}

.cv-stack {
  display: grid;
  gap: 1rem;
}

.cv-panel {
  padding: 1.5rem;
  border: 1px solid rgba(56, 80, 156, 0.16);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 12px 32px rgba(31, 39, 70, 0.06);
}

.cv-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.cv-list a {
  color: var(--accent);
  font-weight: 700;
}

.badge-accent {
  color: var(--ink);
  background: var(--primary);
}

.teacher-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.teacher-card-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.experience-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.experience-list {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--surface-strong);
}

.experience-list > :nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  background: var(--soft);
}

.experience-list > :nth-child(even) .experience-card-img {
  order: 2;
}

.experience-copy {
  width: min(100%, 42rem);
  padding-top: clamp(0.25rem, 1.5vw, 1.25rem);
}

.experience-copy h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}

.experience-copy p {
  line-height: 1.75;
}

@media (min-width: 992px) {
  .experience-card-img {
    position: sticky;
    top: 7rem;
  }
}

@media (max-width: 991.98px) {
  .experience-section,
  .experience-list > :nth-child(even) {
    grid-template-columns: 1fr;
  }

  .experience-list > :nth-child(even) .experience-card-img {
    order: 0;
  }

  .experience-section {
    gap: 2rem;
    padding: 4rem 0;
  }

  .experience-card-img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.gallery-carousel {
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 39, 70, 0.12);
  overflow: hidden;
}

.gallery-carousel-img {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.privacy-note {
  padding: 1rem;
  border: 1px solid rgba(56, 80, 156, 0.16);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.privacy-note a,
footer a {
  font-weight: 700;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: var(--primary);
}

footer {
  margin-top: auto;
  background: var(--accent);
}

/* Editorial theme shared with the Elena concept page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.modal-title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.025em;
}

.container {
  width: min(100% - 2rem, 1180px);
}

.navbar {
  min-height: 80px;
  padding: 0.65rem 0;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(31, 39, 70, 0.94);
  backdrop-filter: blur(16px);
}

.navbar .nav-link {
  position: relative;
  padding: 0.8rem 0 !important;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0.35rem;
  left: 50%;
  height: 1px;
  background: var(--pink);
  transition: right 0.25s ease, left 0.25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--pink);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  right: 0;
  left: 0;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.24);
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

.site-logo {
  height: 52px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 39, 70, 0.95) 0%, rgba(56, 80, 156, 0.78) 52%, rgba(158, 104, 142, 0.44) 100%),
    url("../images/studio-2.jpg") center / cover;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
}

.hero-logo {
  width: min(210px, 60vw);
}

.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(31, 39, 70, 0.94), rgba(56, 80, 156, 0.75), rgba(158, 104, 142, 0.46)),
    url("../images/studio-page-hero.jpg") center 48% / cover;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.page-hero .lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
}

main > section {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
  padding-bottom: clamp(5rem, 8vw, 8rem) !important;
}

.section-soft {
  background:
    linear-gradient(135deg, rgba(190, 183, 217, 0.18), transparent 48%),
    var(--soft);
}

.section-title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-title::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--mauve);
}

.text-center .section-title::before {
  margin-right: auto;
  margin-left: auto;
}

.feature-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1.5rem !important;
  position: relative;
  border: 1px solid rgba(56, 80, 156, 0.16);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(249, 251, 255, 0.96), rgba(186, 218, 241, 0.62));
  color: var(--ink);
  box-shadow: 8px 10px 24px rgba(31, 39, 70, 0.12);
  font-size: 1.6rem;
}

.feature-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--pink);
}

.feature-icon i,
.service-logo i {
  line-height: 1;
}

.btn {
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-brand {
  --bs-btn-bg: var(--pink);
  --bs-btn-border-color: var(--pink);
  --bs-btn-hover-bg: var(--mauve);
  --bs-btn-hover-border-color: var(--mauve);
  --bs-btn-color: var(--ink);
  --bs-btn-hover-color: #fff;
  box-shadow: 7px 7px 0 rgba(56, 80, 156, 0.18);
}

.btn-outline-light:hover {
  color: var(--ink);
  background: var(--primary);
  border-color: var(--primary);
}

.course-card,
.teacher-card,
.cv-panel,
.contact-form,
main article.bg-white {
  border: 1px solid rgba(56, 80, 156, 0.16) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 20px 50px rgba(31, 39, 70, 0.08);
}

.course-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--pink), var(--lavender));
}

.course-card:hover {
  border-color: rgba(158, 104, 142, 0.42) !important;
  box-shadow: 0 26px 60px rgba(31, 39, 70, 0.13);
  transform: translateY(-7px);
}

.course-card h3,
.cv-panel h2,
.cv-panel h3,
main article.bg-white h3 {
  color: var(--ink);
  font-weight: 700 !important;
}

.badge.text-bg-light,
.badge-accent {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(158, 104, 142, 0.16);
  border-radius: 0;
  background: rgba(225, 184, 214, 0.46) !important;
  color: var(--ink) !important;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-logo {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(56, 80, 156, 0.17);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, rgba(186, 218, 241, 0.78), rgba(190, 183, 217, 0.5));
  color: var(--accent);
  box-shadow: 9px 11px 0 rgba(225, 184, 214, 0.38);
  font-size: 1.85rem;
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover .service-logo {
  color: var(--mauve);
  box-shadow: 5px 7px 0 rgba(225, 184, 214, 0.55);
  transform: translate(3px, 3px);
}

.cta-logo {
  width: min(210px, 60vw);
}

.experience-list {
  gap: 0;
}

.experience-section,
.experience-list > :nth-child(even) {
  position: relative;
  padding-right: clamp(1.5rem, 4vw, 4rem);
  padding-left: clamp(1.5rem, 4vw, 4rem);
  background: var(--paper);
}

.experience-list > :nth-child(even) {
  background: rgba(186, 218, 241, 0.3);
}

.experience-card-img {
  border: 0;
  border-radius: 0;
  box-shadow: 18px 18px 0 rgba(190, 183, 217, 0.42);
}

.experience-copy h3 {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
}

.experience-copy h3::before {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--mauve);
}

.cv-stack {
  gap: 1.25rem;
}

.cv-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.cv-list li::marker {
  color: var(--mauve);
}

.gallery-carousel {
  border: 10px solid #fff;
  border-radius: 0;
  box-shadow: 20px 20px 0 rgba(186, 218, 241, 0.7), 0 24px 60px rgba(31, 39, 70, 0.15);
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 3rem) !important;
}

.form-label {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control,
.form-select {
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(56, 80, 156, 0.32);
  border-radius: 0;
  background: var(--paper);
}

textarea.form-control {
  min-height: 130px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mauve);
  box-shadow: 0 2px 0 var(--mauve);
}

.form-check-input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
}

.privacy-note {
  border-radius: 0;
  background: rgba(186, 218, 241, 0.22);
}

.modal-content {
  border: 0;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(31, 39, 70, 0.28);
}

.modal-header {
  border-bottom-color: rgba(56, 80, 156, 0.13);
  background: var(--soft);
}

footer {
  margin-top: auto;
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
  border-top: 5px solid var(--pink);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

footer a:hover {
  color: var(--pink);
}

.site-credit {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin: 0.6rem -1rem -0.65rem;
    padding: 1rem;
    background: var(--ink);
  }

  .navbar .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 720px;
  }
}

@media (max-width: 575.98px) {
  body {
    overflow-x: hidden;
  }

  .container {
    --bs-gutter-x: 1.5rem;
  }

  .row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
  }

  .navbar {
    position: sticky;
    top: 0;
  }

  .site-logo {
    height: 44px;
    max-width: 150px;
  }

  .navbar-toggler {
    padding: 0.35rem 0.55rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
    text-align: center;
    background-position: 58% center;
  }

  .hero .container {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .hero-logo {
    display: block;
    width: min(180px, 56vw);
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.15rem);
    line-height: 1;
  }

  .hero .lead,
  .page-hero .lead,
  main .lead {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .page-hero {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background-position: center;
  }

  main.py-5,
  main .py-5,
  section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .section-title.display-6,
  .display-6 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.08;
  }

  .btn {
    white-space: normal;
  }

  .btn-lg {
    width: 100%;
    max-width: 21rem;
    padding: 0.78rem 1rem;
    font-size: 1rem;
  }

  .course-card,
  .teacher-card,
  .cv-panel,
  .contact-form {
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(31, 39, 70, 0.08);
  }

  .course-card,
  .cv-panel {
    padding: 1.25rem !important;
  }

  .contact-form {
    padding: 1.25rem !important;
  }

  .form-control,
  .form-select {
    min-height: 48px;
    font-size: 1rem;
  }

  textarea.form-control {
    min-height: 132px;
  }

  .privacy-note {
    padding: 0.85rem;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .form-check {
    padding-left: 1.8rem;
  }

  .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -1.8rem;
  }

  .modal-dialog {
    width: auto;
    margin: 0.75rem;
  }

  .modal-dialog-centered {
    min-height: calc(100% - 1.5rem);
  }

  .modal-content {
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
    border-radius: 8px;
  }

  .modal-header,
  .modal-footer {
    padding: 0.85rem 1rem;
  }

  .modal-body {
    max-height: calc(100vh - 10.5rem);
    overflow-y: auto;
    padding: 1rem;
  }

  .gallery-carousel {
    border-radius: 0;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
  }

  .gallery-carousel-img {
    height: min(62vh, 480px);
    min-height: 260px;
  }

  .teacher-card-img {
    min-height: 220px;
  }

  .experience-card-img {
    aspect-ratio: 4 / 3;
  }

  footer .container {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .site-logo {
    height: 40px;
    max-width: 132px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 12vw, 2.65rem);
  }

  .course-card,
  .cv-panel,
  .contact-form {
    padding: 1rem !important;
  }
}

.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
