:root {
  --ink: #222536;
  --muted: #636881;
  --pink: #f58fbb;
  --pink-strong: #ee6ea8;
  --pink-soft: #fdf0f6;
  --blue: #9adcf5;
  --blue-strong: #74c8ea;
  --blue-soft: #edf8ff;
  --white: #ffffff;
  --line: rgba(34, 37, 54, 0.12);
  --line-pink: rgba(238, 110, 168, 0.32);
  --line-blue: rgba(116, 200, 234, 0.36);
  --shadow-soft: 0 10px 28px rgba(34, 37, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.65;
  background: var(--white);
}

.bg-shapes {
  position: fixed;
  inset: -22% -18% auto -18%;
  height: 72vh;
  pointer-events: none;
  z-index: -1;
}

.bg-shapes::before,
.bg-shapes::after {
  content: "";
  position: absolute;
  width: 36vw;
  height: 36vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  filter: blur(10px);
}

.bg-shapes::before {
  left: 1%;
  top: 2%;
  background: rgba(245, 143, 187, 0.2);
}

.bg-shapes::after {
  right: 2%;
  top: 14%;
  background: rgba(154, 220, 245, 0.24);
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Fraunces", serif;
}

.navbar-glass {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border-bottom: 1px solid transparent;
}

.navbar-glass:not(.navbar-solid) {
  border-bottom-color: transparent;
  box-shadow: none;
}

.navbar-glass.navbar-solid {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(34, 37, 54, 0.08);
}

.navbar-brand {
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.95rem, 2.6vw, 2.4rem);
  line-height: 1;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--ink) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.25rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ink);
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn-gradient {
  border: 0;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--pink-strong), var(--pink));
  box-shadow: 0 10px 22px rgba(238, 110, 168, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-gradient:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(238, 110, 168, 0.35);
}

.intro-unlock-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1065;
  border-radius: 999px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 60px;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.hero-section::before {
  width: 380px;
  height: 380px;
  right: -110px;
  top: 18%;
  border-radius: 50%;
  background: var(--pink-soft);
}

.hero-section::after {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: 10%;
  border-radius: 24px;
  transform: rotate(14deg);
  background: var(--blue-soft);
}

.hero-badge {
  border: 1px solid var(--line-pink);
  color: var(--ink);
  background: var(--pink-soft);
  padding: 0.5rem 0.8rem;
  letter-spacing: 0.07em;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.02;
  max-width: 11.5ch;
}

.hero-lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.stat-number {
  font-size: 2rem;
  line-height: 1;
}

.hero-stack {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.glass-card {
  border: 1px solid var(--line-pink);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.83rem;
  font-weight: 500;
  background: var(--white);
}

.float-badge {
  position: absolute;
  display: inline-flex;
  padding: 0.32rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.78rem;
  animation: floatY 3.2s ease-in-out infinite;
}

.float-a {
  top: -16px;
  right: 18px;
  border-color: var(--line-pink);
  background: var(--pink-soft);
}

.float-b {
  left: -14px;
  bottom: 20px;
  animation-delay: 0.7s;
  border-color: var(--line-blue);
  background: var(--blue-soft);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section-shell,
.contact-shell {
  border-top: 1px solid var(--line);
}

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

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

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

.section-kicker {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
}

.link-highlight {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.link-highlight:hover {
  color: #0c0c0c;
}

.info-tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--white);
}

.section-pink .info-tile {
  border-color: var(--line-pink);
}

.section-blue .info-tile {
  border-color: var(--line-blue);
}

.info-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-soft);
}

.section-blue .info-icon {
  background: #e3f4fd;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(34, 37, 54, 0.12);
}

.project-preview {
  height: 184px;
  position: relative;
  overflow: hidden;
}

.preview-a {
  background: var(--pink-soft);
}

.preview-b {
  background: var(--blue-soft);
}

.preview-c {
  background: var(--white);
}

.preview-d {
  background: linear-gradient(145deg, #f8eef4, #eef8fd);
}

.preview-a::before,
.preview-b::before,
.preview-c::before,
.preview-d::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 12px;
}

.preview-a::before {
  border: 2px solid rgba(238, 110, 168, 0.38);
}

.preview-b::before {
  border: 2px solid rgba(116, 200, 234, 0.44);
}

.preview-c::before {
  border: 2px solid rgba(34, 37, 54, 0.16);
}

.preview-d::before {
  display: none;
}

.selfcare-showcase {
  isolation: isolate;
  background: linear-gradient(160deg, #fbe7f1 0%, #fdf0f6 48%, #f6eff8 100%);
  cursor: zoom-in;
}

.selfcare-showcase::before {
  inset: 8px;
  border-radius: 14px;
  border: 2px solid rgba(238, 110, 168, 0.46);
  z-index: 2;
}

.selfcare-showcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(18, 10, 20, 0) 0%, rgba(18, 10, 20, 0.52) 100%);
  z-index: 2;
  pointer-events: none;
}

.selfcare-media-image,
.selfcare-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #f8edf4;
}

.selfcare-status {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  color: #fff;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(18, 10, 20, 0.34);
  backdrop-filter: blur(4px);
}

.selfcare-showcase.has-media-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.selfcare-showcase.has-media-error::after {
  display: none;
}

.selfcare-showcase.has-media-error .selfcare-media-image,
.selfcare-showcase.has-media-error .selfcare-media-video {
  display: none;
}

.selfcare-showcase.has-media-error .selfcare-status {
  position: relative;
  left: auto;
  bottom: auto;
  background: rgba(34, 37, 54, 0.06);
  color: var(--ink);
  border-color: rgba(34, 37, 54, 0.16);
  letter-spacing: 0.03em;
  text-transform: none;
}

.music-video-showcase {
  isolation: isolate;
  background: linear-gradient(165deg, #dff1fb 0%, #eef8ff 52%, #f8eef4 100%);
  cursor: zoom-in;
}

.music-video-showcase::before {
  inset: 8px;
  border-radius: 14px;
  border: 2px solid rgba(116, 200, 234, 0.52);
  z-index: 2;
}

.music-video-showcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(12, 16, 26, 0) 0%, rgba(12, 16, 26, 0.58) 100%);
  z-index: 2;
  pointer-events: none;
}

.music-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #d6eaf7;
}

.music-video-status {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  color: #fff;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 16, 26, 0.33);
  backdrop-filter: blur(4px);
}

.music-video-showcase.has-video-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.music-video-showcase.has-video-error::after {
  display: none;
}

.music-video-showcase.has-video-error .music-video-player {
  display: none;
}

.music-video-showcase.has-video-error .music-video-status {
  position: relative;
  left: auto;
  bottom: auto;
  background: rgba(34, 37, 54, 0.06);
  color: var(--ink);
  border-color: rgba(34, 37, 54, 0.16);
  letter-spacing: 0.03em;
  text-transform: none;
}

.selfcare-showcase:focus-visible,
.music-video-showcase:focus-visible {
  outline: 2px solid rgba(238, 110, 168, 0.52);
  outline-offset: 2px;
}

.media-gallery-modal .modal-content {
  border-radius: 20px;
  background: rgba(17, 20, 31, 0.94);
  color: #f5f7ff;
}

.media-gallery-modal .btn-close {
  filter: invert(1) grayscale(1);
}

.media-gallery-modal .carousel-inner {
  border-radius: 16px;
}

.media-gallery-modal .carousel-item {
  padding: 0.25rem 0.25rem 0.65rem;
}

.media-gallery-stage {
  min-height: 300px;
  max-height: 72vh;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 10, 16, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-gallery-stage img,
.media-gallery-stage video {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-gallery-caption {
  margin-top: 0.55rem;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.83rem;
  color: rgba(245, 247, 255, 0.74);
}

.media-gallery-modal .carousel-control-prev,
.media-gallery-modal .carousel-control-next {
  width: 10%;
}

.media-gallery-modal .carousel.is-single .carousel-control-prev,
.media-gallery-modal .carousel.is-single .carousel-control-next {
  display: none;
}

.movie-showcase {
  isolation: isolate;
  cursor: pointer;
}

.movie-preview-base {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.28), rgba(248, 236, 244, 0.18)),
    radial-gradient(circle at 84% 14%, rgba(154, 220, 245, 0.18), transparent 46%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 1;
  opacity: 0.08;
  transition: opacity 0.26s ease, transform 0.32s ease;
}

.movie-preview-hint {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(34, 37, 54, 0.82);
  font-weight: 700;
  max-width: 20ch;
}

.movie-live-layer {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
  border: 0;
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease, transform 0.35s ease;
  box-shadow: none;
}

.movie-live-iframe {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  transform-origin: top center;
  transform: translate(-50%, -14px) scale(0.215);
  pointer-events: none;
}

.movie-showcase:hover .movie-live-iframe,
.movie-showcase.is-active .movie-live-iframe,
.movie-showcase:focus-within .movie-live-iframe {
  transform: translate(-50%, -14px) scale(0.22);
}

.movie-promo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 28%, rgba(18, 22, 33, 0.74) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-promo-text {
  margin: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.02em;
  letter-spacing: 0.12em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: opacity 0.18s ease, transform 0.18s ease, letter-spacing 0.32s ease, text-shadow 0.32s ease;
}

.movie-promo-text.swap-out {
  opacity: 0;
  transform: translateY(6px);
}

.movie-promo-text .promo-char {
  display: inline-block;
  opacity: 0.58;
  filter: blur(1px);
  transform: translateY(7px) scale(1.03);
  transition:
    transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--char-index) * 16ms),
    opacity 0.24s ease calc(var(--char-index) * 16ms),
    filter 0.24s ease calc(var(--char-index) * 16ms);
}

.movie-showcase:hover .movie-preview-base,
.movie-showcase.is-hovered .movie-preview-base,
.movie-showcase:focus-within .movie-preview-base {
  opacity: 0;
  transform: scale(0.985);
}

.movie-showcase:hover .movie-live-layer,
.movie-showcase.is-hovered .movie-live-layer,
.movie-showcase:focus-within .movie-live-layer {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-showcase:hover .movie-promo-overlay,
.movie-showcase.is-hovered .movie-promo-overlay,
.movie-showcase:focus-within .movie-promo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.movie-showcase:hover .movie-promo-text,
.movie-showcase.is-hovered .movie-promo-text,
.movie-showcase:focus-within .movie-promo-text {
  letter-spacing: 0.02em;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.44);
}

.movie-showcase:hover .movie-promo-text .promo-char,
.movie-showcase.is-hovered .movie-promo-text .promo-char,
.movie-showcase:focus-within .movie-promo-text .promo-char {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@media (hover: none) {
  .movie-live-iframe {
    transform: translate(-50%, -14px) scale(0.215);
  }

  .movie-preview-base {
    opacity: 0;
  }

  .movie-promo-text {
    letter-spacing: 0.02em;
  }

  .movie-promo-text .promo-char {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.writing-list {
  background: transparent;
  border: 0;
}

.writing-item {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  margin-bottom: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  background: var(--white);
}

.writing-item:hover {
  transform: translateX(4px);
  border-color: rgba(121, 207, 255, 0.72) !important;
}

.topic {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.section-pink .contact-panel {
  border-color: var(--line-pink);
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(31, 35, 51, 0.18);
  padding: 0.78rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(121, 207, 255, 0.66);
  box-shadow: 0 0 0 0.25rem rgba(121, 207, 255, 0.14);
}

.social-pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.46rem 0.78rem;
  background: var(--white);
}

.social-pill:hover {
  border-color: var(--line-pink);
}

.contact-shell {
  border-bottom: 1px solid var(--line);
}

.footer {
  color: var(--muted);
  background: var(--white);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 124px;
  }

  .float-badge {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 2rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 12vw, 2.9rem);
  }

  .btn-lg {
    width: 100%;
  }
}
