/* ================= GLOBAL VARIABLES ================= */
:root {
  --bg: #F5F3EE;
  --blue: #0038FF;
  --maxw: 1200px;
}

/* ================= CURSOR ================= */
body, a, button {
  cursor: url('../images/blue-cursor.png'), auto;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--blue);
  font-family: "neue-haas-grotesk-display", system-ui;
  overflow-x: hidden;
}

/* ================= TOP BAR ================= */
.top-bar {
  position: sticky;  /* sticks to top on scroll */
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* desktop updated below for top alignment */
  z-index: 1000;
  background-color: var(--bg); /* ensures content behind doesn’t show */
}

.left-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* ===== LEFT GROUP FIX (DESKTOP ONLY) ===== */
@media (min-width: 981px) {
  .left-group {
    position: fixed;   /* pins to viewport */
    top: 26px;
    left: 36px;
    z-index: 1100;     /* above top-bar */
    background-color: var(--bg); /* prevents overlap glow behind */
  }

  /* Keep nav on the right, push away from pinned left */
  .top-bar nav {
    margin-left: auto;
    margin-top: 20px; /* aligns with left-group vertically */
  }

  /* Align top-bar items to top for perfect line */
  .top-bar {
    align-items: flex-start;
  }
}

/* BACK TO BLOCK FONT */
.sf-small {
  font-family: "parfumerie-script", cursive;
  font-size: 30px;
  color: var(--blue);
  pointer-events: none;
}

.back-home {
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
}

nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

nav a {
  color: var(--blue);
  text-decoration: none;
  opacity: 0.95;
}

nav a:hover { 
  opacity: 1; 
  text-decoration: underline; 
}

/* Only fade the nav, leave left-group visible */
.top-bar.scrolled nav {
  opacity: 0;
  pointer-events: none;
}

/* ================= FIXED TEXT ON LEFT ================= */
.text-fixed {
  position: fixed;
  top: 120px;
  left: 36px;
  width: 40%;
  z-index: 900;
}

.title {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 8px;
}

.short {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 18px;
}

.long {
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  font-weight: 300;
  max-width: 460px;
}

/* ================= MEDIA ON RIGHT ================= */
.media {
  position: relative;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 36px;
  align-items: flex-end;
  width: auto;
  z-index: 900;
}

.media img,
.media video {
  border-radius: 0px;
  box-shadow: 0 12px 30px rgba(3,24,255,0.06);
  cursor: pointer;
  margin-bottom: 0;
}

.media img {
  width: 80%;
  max-width: 540px;
}

.media video {
  width: 75%;
  max-width: 720px;
}

.media img:last-child,
.media video:last-child {
  margin-bottom: 100px;
}

/* ================= PAGE ENDER STAR ================= */
.page-ender {
  display: flex;
  justify-content: center;
  margin: 120px 0 60px;
  font-size: 80px;
  color: var(--blue);
  transition: transform 0.6s ease-in-out;
  cursor: pointer;
}

.page-ender:hover {
  transform: rotate(360deg);
}

/* ================= RESPONSIVE / MOBILE ================= */
@media (max-width: 980px) {

  /* LEFT GROUP: Stella Falting on ONE line */
  .left-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-direction: column;
    position: static; /* reset for mobile */
  }

  .sf-small {
    white-space: nowrap; /* keep on one line */
    line-height: 1;
    font-size: 40px; /* larger and centered */
    text-align: center;
  }

  /* REMOVE BACK TO HOME */
  .back-home {
    display: none;
  }

  /* NAV INLINE BELOW STELLA */
  nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
  }

  /* ================= TEXT AND MEDIA FOR MOBILE ================= */
  .text-fixed,
  .contact-container {
    position: static;
    width: 100%;
    margin: 32px 0 24px;
    padding: 0 16px;
    text-align: left;
  }

  /* MEDIA STACKS */
  .media {
    position: static;
    width: 100%;
    padding: 0 16px 40px;
    align-items: stretch;
  }

  .media img,
  .media video {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .photo-img { width: 90%; max-width: 400px; }
  .text-fixed { max-width: 95%; }
}
