:root {
  --sugar-paper: rgb(186, 218, 241);
  --pink: rgb(225, 184, 214);
  --mauve: rgb(158, 104, 142);
  --lavender: rgb(190, 183, 217);
  --accent-blue: rgb(56, 80, 156);
  --tab-blue: rgb(72, 96, 163);
  --paper: rgb(249, 251, 255);
  --soft-paper: rgb(246, 242, 250);
  --ink: rgb(31, 39, 70);
  --muted-ink: rgb(67, 75, 111);
  --night: var(--accent-blue);
  --night-deep: var(--ink);
  --panel: var(--paper);
  --panel-light: var(--sugar-paper);
  --cream: var(--paper);
  --gold: var(--pink);
  --gold-soft: var(--sugar-paper);
  --ink-soft: var(--muted-ink);
  --line: rgba(56, 80, 156, 0.16);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
}

a {
  color: inherit;
}

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

.elena-navbar {
  min-height: 80px;
  background: rgba(31, 39, 70, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.elena-logo {
  width: 94px;
  height: auto;
}

.elena-navbar .nav-link {
  padding: 0.75rem 0 !important;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.btn {
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.btn-sm {
  min-height: 40px;
  padding: 0.65rem 1.15rem;
}

.btn-gold {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--night-deep);
}

.btn-gold:hover,
.btn-gold:focus {
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  color: var(--night-deep);
}

.btn-outline-gold,
.btn-ghost {
  border: 1px solid rgba(225, 184, 214, 0.75);
  color: var(--gold-soft);
}

.btn-outline-gold:hover,
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--night-deep);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.elena-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 44%, rgba(190, 183, 217, 0.3), transparent 30%),
    linear-gradient(135deg, var(--night-deep), var(--accent-blue) 68%);
}

.elena-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, black, transparent 65%);
}

.hero-copy {
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero-intro {
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hero-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(4.6rem, 8.8vw, 8.8rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.83;
}

.hero-lead {
  max-width: 33rem;
  margin-top: 2.2rem;
  color: #cdd1dd;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.hero-portrait-wrap {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 760px;
}

.portrait-frame {
  position: absolute;
  right: -6vw;
  bottom: 0;
  width: min(46vw, 620px);
  height: calc(100% - 7rem);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 11% 5% 0 0;
  border: 1px solid rgba(225, 184, 214, 0.55);
  transform: translate(22px, 20px);
}

.hero-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.85) contrast(1.04);
  box-shadow: -30px 20px 75px rgba(0, 0, 0, 0.3);
}

.portrait-line {
  position: absolute;
  z-index: 2;
  left: -72px;
  bottom: 22%;
  width: 130px;
  height: 1px;
  background: var(--gold);
}

.hero-decoration {
  position: absolute;
  border: 1px solid rgba(225, 184, 214, 0.32);
  transform: rotate(45deg);
}

.hero-decoration-one {
  top: 32%;
  left: 46%;
  width: 190px;
  height: 190px;
}

.hero-decoration-two {
  bottom: 10%;
  left: 4%;
  width: 70px;
  height: 70px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: max(2rem, calc((100vw - 1180px) / 2));
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(-45deg);
}

.intro-tabs {
  position: relative;
  z-index: 4;
  padding-bottom: 1.5rem;
  background: var(--sugar-paper);
}

.profile-tabs {
  margin-top: -1px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--tab-blue);
}

.profile-tabs .nav-link {
  width: 100%;
  height: 68px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-tabs .nav-link:hover {
  background: rgba(186, 218, 241, 0.22);
  color: white;
}

.profile-tabs .nav-link.active {
  background: var(--pink);
  color: var(--night-deep);
}

.profile-panel {
  min-height: 620px;
  padding: clamp(4rem, 7vw, 7rem);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(31, 39, 70, 0.28);
}

.profile-panel .tab-pane {
  min-height: 410px;
}

.profile-panel h2,
.career-section h2,
.contact-cta h2 {
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.06;
}

.profile-panel p:not(.eyebrow),
.career-intro {
  color: var(--ink-soft);
  line-height: 1.75;
}

.profile-panel .section-lead {
  color: var(--ink) !important;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.profile-panel .eyebrow,
.expertise-section .eyebrow,
.career-section .eyebrow,
.gallery-section .eyebrow {
  color: var(--mauve);
}

.about-image-wrap {
  position: relative;
  padding: 0 1.5rem 1.5rem 0;
}

.about-image-wrap::after {
  content: "";
  position: absolute;
  inset: 1.5rem 0 0 1.5rem;
  z-index: 0;
  border: 1px solid var(--mauve);
}

.about-image,
.tab-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tab-photo {
  border: 1px solid rgba(158, 104, 142, 0.4);
}

.image-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  background: var(--gold);
  color: var(--night);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
}

.stats-row span {
  color: var(--muted-ink);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.text-link {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  margin-left: 0.4rem;
  transition: margin 0.2s ease;
}

.text-link:hover span {
  margin-left: 0.75rem;
}

.expertise-section,
.gallery-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--sugar-paper);
}

.expertise-section {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.section-heading > p {
  max-width: 27rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.expertise-card {
  height: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(31, 39, 70, 0.09);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.expertise-card:hover {
  border-color: rgba(158, 104, 142, 0.55);
  transform: translateY(-8px);
}

.card-image {
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.75);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.expertise-card:hover .card-image img {
  filter: saturate(1);
  transform: scale(1.035);
}

.expertise-card .card-body {
  position: relative;
  min-height: 220px;
  padding: 2rem;
}

.card-number {
  position: absolute;
  top: -18px;
  right: 1.5rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  font-size: 0.7rem;
  font-weight: 700;
}

.expertise-card h3 {
  color: var(--ink);
  font-size: 1.55rem;
}

.expertise-card p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.career-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--soft-paper);
}

.career-list {
  border-top: 1px solid var(--line);
}

.career-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.career-item > span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.career-item h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1.45rem;
}

.career-item p {
  margin: 0;
  color: var(--ink-soft);
}

.curriculum-full {
  margin-top: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.curriculum-heading {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.curriculum-heading h3 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.08;
}

.curriculum-block {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.curriculum-label {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.curriculum-label span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  place-items: center;
  background: var(--pink);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.curriculum-label h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.curriculum-content ul {
  display: grid;
  gap: 1.05rem;
  margin: 0;
  padding-left: 1.2rem;
}

.curriculum-content li {
  padding-left: 0.35rem;
  color: var(--muted-ink);
  line-height: 1.72;
}

.curriculum-content li::marker {
  color: var(--mauve);
}

.curriculum-content a {
  color: var(--accent-blue);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.curriculum-content a:hover {
  color: var(--mauve);
}

.gallery-section {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  grid-auto-rows: 290px;
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--sugar-paper);
}

.gallery-grid .gallery-wide {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-grid figure:hover img {
  filter: saturate(1);
  transform: scale(1.035);
}

.contact-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 10rem) 0;
  text-align: center;
  background:
    linear-gradient(rgba(56, 80, 156, 0.84), rgba(31, 39, 70, 0.94)),
    url("/assets/images/elena/studio-48_ALT.jpeg") center 42% / cover;
}

.contact-cta::before,
.contact-cta::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(225, 184, 214, 0.45);
  transform: rotate(45deg);
}

.contact-cta::before {
  top: -70px;
  left: 5%;
}

.contact-cta::after {
  right: 5%;
  bottom: -70px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.contact-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--paper);
  line-height: 1.75;
}

.contact-cta h2 {
  color: white;
}

.elena-footer {
  padding: 4rem 0 1.5rem;
  background: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  width: 110px;
}

.footer-top p {
  color: #8f96aa;
  line-height: 1.7;
}

.footer-top nav {
  display: flex;
  gap: 1.5rem;
}

.footer-top a {
  color: #b8bdca;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-top a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #686f83;
  font-size: 0.72rem;
}

.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease var(--reveal-delay, 0ms), transform 0.7s ease var(--reveal-delay, 0ms);
}

.reveal-section.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .elena-navbar .navbar-collapse {
    margin: 0.8rem -1rem -0.5rem;
    padding: 1rem;
    background: var(--night-deep);
  }

  .elena-navbar .btn {
    margin-top: 0.5rem;
  }

  .elena-hero {
    padding-top: 0;
  }

  .elena-hero .min-vh-100 {
    min-height: auto !important;
  }

  .hero-copy {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero-portrait-wrap {
    height: 650px;
    min-height: 0;
  }

  .portrait-frame {
    right: 0;
    width: min(80vw, 560px);
    height: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .profile-panel {
    padding: 4rem 2.5rem;
  }

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

  .gallery-grid .gallery-wide {
    grid-row: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-copy h1 {
    font-size: clamp(4.2rem, 22vw, 6.3rem);
  }

  .hero-portrait-wrap {
    height: 520px;
  }

  .portrait-frame {
    width: 92%;
  }

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

  .profile-tabs .nav-link {
    height: 56px;
  }

  .profile-panel {
    min-height: auto;
    padding: 3rem 1.25rem;
  }

  .about-image-wrap {
    max-width: 430px;
    margin: 0 auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1.5rem;
  }

  .career-item {
    grid-template-columns: 76px 1fr;
    gap: 1rem;
  }

  .curriculum-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .curriculum-label {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-top nav {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 440px) {
  .hero-copy .btn {
    width: 100%;
  }

  .hero-portrait-wrap {
    height: 440px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row div {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
