/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #0c0c0c;
  --bg-alt:    #111111;
  --bg-card:   #181818;
  --border:    #222222;
  --text:      #ede9e4;
  --muted:     #666666;

  --accent:    #f5159f;   /* vivid magenta */
  --accent-2:  #b030ff;   /* electric violet */
  --gradient:  linear-gradient(135deg, #f5159f 0%, #b030ff 100%);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 2px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-head { margin-bottom: 3rem; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── Gradient text helper */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.22s, transform 0.22s var(--ease), border-color 0.22s, color 0.22s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.95);
}
.btn-primary:hover {
  opacity: 0.82;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.88);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  transition:
    background 0.4s var(--ease),
    backdrop-filter 0.4s,
    padding 0.35s var(--ease),
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2.5rem;
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.08)) drop-shadow(0 1px 2px rgba(0,0,0,0.22));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(237, 233, 228, 0.92);
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.15);
}
.nav-links a:hover { color: var(--text); }

.nav-book {
  background: var(--gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.08)) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.nav-book:hover { opacity: 0.75 !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.mobile-nav-close:hover { opacity: 1; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  color: rgba(237,233,228,0.7);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--text); }

.mobile-nav-book {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Smooth top fade — eased across same 8% height */
    linear-gradient(to bottom, rgba(12,12,12,0.45) 0%, rgba(12,12,12,0.38) 1.5%, rgba(12,12,12,0.29) 3%, rgba(12,12,12,0.19) 4.5%, rgba(12,12,12,0.1) 6%, rgba(12,12,12,0.06) 6.8%, rgba(12,12,12,0.03) 7.4%, rgba(12,12,12,0.01) 7.8%, rgba(12,12,12,0) 8%),
    /* Short bottom depth — only the last ~15% of the hero */
    linear-gradient(to bottom, rgba(12,12,12,0) 82%, rgba(12,12,12,0.45) 93%, rgba(12,12,12,0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237, 233, 228, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  margin-bottom: 1.25rem;
  animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 11vw, 9.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  padding-right: 0.08em; /* prevents background-clip: text from cropping the trailing stroke */
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s var(--ease) 0.4s both;
  /* Outer halo for spread, inner shadow dark close to the letters */
  filter:
    drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35))
    drop-shadow(0 1px 4px  rgba(0, 0, 0, 0.95));
}

.hero-dot {
  display: inline-block;
  opacity: 0.6;
}

.hero-byline {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 233, 228, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  margin-bottom: 2.75rem;
  animation: fadeUp 1s var(--ease) 0.6s both;
}

.hero-content .btn {
  animation: fadeUp 1s var(--ease) 0.8s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 1s var(--ease) 1.2s both;
}
.hero-scroll span {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.4; transform: scaleY(0.4); transform-origin: top; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  white-space: nowrap;
  user-select: none;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 1.1rem;
  letter-spacing: 0.02em;
}

.ticker-track em {
  font-style: normal;
  color: var(--accent);
  margin: 0 0.3rem;
  font-size: 0.9rem;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { padding: 6rem 0; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.about-text h2 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: rgba(237, 233, 228, 0.68);
  margin-bottom: 1rem;
}
.about-text .btn { margin-top: 1.5rem; }

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated gradient blob */
.blob {
  width: 340px;
  height: 340px;
  background: var(--gradient);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(3px);
  opacity: 0.28;
  animation: blobMorph 10s ease-in-out infinite;
  will-change: border-radius;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  66%       { border-radius: 50% 50% 40% 60% / 30% 70% 60% 40%; }
}

/* ============================================================
   WORK / PORTFOLIO CAROUSEL
   ============================================================ */
#work {
  padding: 5rem 0 3.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#work .container { margin-bottom: 2.5rem; }

.carousel-wrap {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.carousel-item {
  flex: 0 0 clamp(260px, 38vw, 420px);
  padding: 1px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--radius) + 1px);
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  display: block;
  transition: filter 0.4s var(--ease);
  filter: grayscale(8%) brightness(0.95);
}
.carousel-item img:hover {
  filter: grayscale(0%) brightness(1);
}

/* Nav buttons */
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, border-color 0.22s, transform 0.22s var(--ease);
  z-index: 5;
  backdrop-filter: blur(8px);
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

.dot-btn {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s var(--ease), border-radius 0.25s;
}
.dot-btn.active {
  background: var(--accent);
  width: 22px;
  border-radius: 3px;
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
#instagram { padding: 6rem 0; }

/* Native Instagram profile embed */
.insta-embed-wrap {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  /* 1px gradient border using the padding trick */
  padding: 1px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  overflow: hidden;
}

.insta-embed {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: transparent;
  border-radius: 2px;
}

.insta-cta { text-align: center; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 6rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.contact-left h2 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-left p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(237, 233, 228, 0.6);
  margin-bottom: 2rem;
}

/* Contact details list */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:first-child { border-top: 1px solid var(--border); }

/* Row with no dt label — no extra gap needed */
.contact-row > dd:first-child { padding-top: 0; }

.contact-row dt {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-row dd {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.85;
}
.contact-row dd a {
  opacity: 0.78;
  transition: opacity 0.2s;
}
.contact-row dd a:hover { opacity: 1; }

.contact-sublabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(237, 233, 228, 0.4);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.booking-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-note {
  font-size: 0.73rem;
  color: var(--muted);
}
.footer-note a {
  opacity: 0.65;
  transition: opacity 0.2s;
}
.footer-note a:hover { opacity: 1; }

.footer-masci-link {
  opacity: 1 !important;
  color: rgba(237, 233, 228, 0.55) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual { display: none; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  #nav { padding: 1.25rem 1.5rem; }
  #nav.scrolled { padding: 0.9rem 1.5rem; }

  .carousel-prev { left: 0.25rem; }
  .carousel-next { right: 0.25rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .insta-embed { height: 400px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }

  #about, #instagram, #contact { padding: 4rem 0; }
  #work { padding: 3.5rem 0 2.5rem; }

  .insta-embed { height: 360px; }
}
