/* ════════════════════════════════════════════════════════════
   Angel by Vjosa — Hero Section
   Scroll-scrubbed studio walkthrough with timed captions.
   Palette pulled from the logo: blush, cream, deep ink.
   ════════════════════════════════════════════════════════════ */

:root {
  --blush:        #f5e2cf;
  --blush-deep:   #ecc9a8;
  --cream:        #faf3ea;
  --cream-soft:   #fdf8f1;
  --ink:          #1a1410;
  --ink-soft:     #3a2c22;
  --muted:        #8a7560;
  --accent:       #c69373;   /* warm rose-gold for thin lines / CTA */
  --accent-deep:  #a3725a;

  --ff-sans:      'Outfit', system-ui, -apple-system, sans-serif;
  --ff-display:   'Cormorant Garamond', 'Times New Roman', serif;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* While the loader is up, lock scroll so the cache can build */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

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

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}

/* Soft peach halo — echoes the gradient on the logo PNG */
.loader__halo {
  position: absolute;
  width: 90vmin;
  height: 90vmin;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(245, 226, 207, 0.95) 0%,
              rgba(245, 226, 207, 0.55) 35%,
              rgba(245, 226, 207, 0)   70%);
  filter: blur(8px);
  animation: haloFloat 6s ease-in-out infinite alternate;
}

@keyframes haloFloat {
  0%   { transform: scale(1)    translateY(0); }
  100% { transform: scale(1.04) translateY(-1%); }
}

.loader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: loaderRise 1.1s var(--ease-out) 0.05s both;
}

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

.loader__logo {
  width: clamp(180px, 26vmin, 280px);
  height: auto;
  user-select: none;
  pointer-events: none;
}

.loader__sub {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: -0.5rem;
  padding-left: 0.5em;     /* compensate for letter-spacing visually */
}

.loader__bar {
  width: 180px;
  height: 1px;
  background: rgba(26, 20, 16, 0.10);
  overflow: hidden;
  margin-top: 0.5rem;
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 220ms ease-out;
  will-change: width;
}

/* ═══════════════════════════════════════════════════════════
   HERO — scroll-scrubbed studio walkthrough
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--ink);
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Poster sits behind the canvas — shown if the safety-net timeout
     fires before frames finish loading, so users never see black. */
  background: url('../assets/images/hero-poster.jpg') center / cover no-repeat var(--ink);
}

/* Subtle warm tint — pulls the video toward the brand palette */
.hero__video-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26, 20, 16, 0.08) 0%,
      rgba(26, 20, 16, 0.00) 25%,
      rgba(26, 20, 16, 0.00) 85%,
      rgba(26, 20, 16, 0.10) 100%),
    linear-gradient(135deg,
      rgba(245, 226, 207, 0.06) 0%,
      rgba(0, 0, 0, 0) 60%);
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 1;
}

/* Soft vignette — darkens the edges to focus the eye */
.hero__video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center,
              rgba(0, 0, 0, 0) 45%,
              rgba(0, 0, 0, 0.45) 100%);
}

/* Bottom fade — dissolves the video into the cream of the next section */
.hero__bottom-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8vh;
  background: linear-gradient(180deg,
              rgba(250, 243, 234, 0) 0%,
              rgba(250, 243, 234, 0.3) 70%,
              var(--cream) 100%);
  pointer-events: none;
  z-index: 3;
}

/* ── Welcome moment ──────────────────────────────────────── */
/* Highly visible on the very first frame, dissolves out fast
   the moment the user starts scrolling. */
.hero__welcome {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
  will-change: opacity, transform;
}

/* Soft radial darkening centered behind the welcome — focuses the
   eye on the brand mark without hiding the studio video. */
.hero__welcome::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center,
              rgba(0, 0, 0, 0.55) 0%,
              rgba(0, 0, 0, 0.35) 35%,
              rgba(0, 0, 0, 0)    70%);
  z-index: -1;
}

.hero__welcome-eyebrow {
  font-family: var(--ff-sans);
  font-size: clamp(0.7rem, 0.85vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 2.25rem;
  padding-left: 0.62em;
  text-shadow: 0 2px 22px rgba(0,0,0,0.7);
  animation: welcomeFadeIn 1.0s var(--ease-out) 0.2s both;
}

.hero__welcome-mark {
  width: clamp(280px, 42vmin, 520px);
  height: auto;
  /* Warm gradient behind the wordmark - covers the whole logo (PNG square
     removed) and fades softly into the video. Shows through transparent PNG. */
  background: radial-gradient(ellipse 46% 36% at 50% 50%,
              rgba(245, 226, 207, 0.85) 0%,
              rgba(245, 226, 207, 0.85) 55%,
              rgba(245, 226, 207, 0)   100%);
  filter:
    drop-shadow(0 22px 70px rgba(0,0,0,0.7))
    drop-shadow(0 2px 14px rgba(245, 226, 207, 0.25));
  user-select: none;
  pointer-events: none;
  animation: welcomeRise 1.2s var(--ease-out) 0s both;
}

.hero__welcome-name {
  font-family: var(--ff-sans);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.65em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 0.75rem;
  padding-left: 0.65em;
  text-shadow: 0 2px 22px rgba(0,0,0,0.7);
  animation: welcomeFadeIn 1.0s var(--ease-out) 0.35s both;
}

.hero__welcome-tag {
  margin-top: 2.75rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 22px rgba(0,0,0,0.7);
  animation: welcomeFadeIn 1.0s var(--ease-out) 0.55s both;
}

@keyframes welcomeRise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Floating brand mark, top-left ───────────────────────── */
.hero__brand {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  z-index: 10;
  pointer-events: none;
  opacity: 0.92;
}

.hero__brand-mark {
  width: clamp(72px, 8vmin, 110px);
  height: auto;
  background: radial-gradient(ellipse 46% 36% at 50% 50%,
              rgba(245, 226, 207, 0.7) 0%,
              rgba(245, 226, 207, 0.7) 55%,
              rgba(245, 226, 207, 0)   100%);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25));
}

/* ── Scroll hint ─────────────────────────────────────────── */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
}

.hero__scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 0.45em;
}

.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg,
              rgba(255, 255, 255, 0.7) 0%,
              rgba(255, 255, 255, 0) 100%);
  animation: scrollHint 2.4s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1;   }
}

/* ── Timed captions ──────────────────────────────────────── */
.hero__caption {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: clamp(280px, 38vw, 560px);
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  pointer-events: none;
}

.hero__caption[data-align="left"]  { left: 6vw;  transform-origin: left center; }
.hero__caption[data-align="right"] { right: 6vw; text-align: right; transform-origin: right center; }

.hero__caption-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.1rem;
  padding-left: 0.4em;
  position: relative;
}

.hero__caption[data-align="left"] .hero__caption-eyebrow::before,
.hero__caption[data-align="right"] .hero__caption-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--blush);
  opacity: 0.55;
}

.hero__caption[data-align="left"]  .hero__caption-eyebrow::before { right: 100%; margin-right: 12px; }
.hero__caption[data-align="right"] .hero__caption-eyebrow::after  { left:  100%; margin-left:  12px; }

.hero__caption-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero__caption-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blush);
}

.hero__caption-sub {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 38ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero__caption[data-align="right"] .hero__caption-sub { margin-left: auto; }

/* ── Final brand card — appears at the end of the pin ───── */
.hero__final {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  pointer-events: none;
}

.hero__final-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.5rem;
  padding-left: 0.55em;
}

.hero__final-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero__final-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blush);
}

.hero__final-sub {
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.86);
  margin-bottom: 2.5rem;
  max-width: 38ch;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}

.hero__final-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  --pad-y: 0.95rem;
  --pad-x: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
  will-change: transform;
}

.btn--solid {
  background: var(--blush);
  color: var(--ink);
}
.btn--solid:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn--solid:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}
.btn--ghost:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════════════
   AFTER-HERO sentinel (so we can preview the unpin)
   ═══════════════════════════════════════════════════════════ */
.after-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 6rem 2rem;
}

.after-hero__inner { text-align: center; max-width: 640px; }

.after-hero__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-left: 0.45em;
}

.after-hero__text {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero__brand          { top: 1.1rem; left: 1.1rem; }
  .hero__brand-mark     { width: 64px; }

  .hero__caption {
    top: auto;
    bottom: 22vh;
    width: calc(100% - 2.4rem);
    left: 1.2rem !important;
    right: 1.2rem !important;
    text-align: left !important;
  }
  .hero__caption[data-align="right"] .hero__caption-sub { margin-left: 0; }
  .hero__caption[data-align="right"] .hero__caption-eyebrow::after { display: none; }
  .hero__caption[data-align="left"]  .hero__caption-eyebrow::before { display: none; }
  .hero__caption-eyebrow { padding-left: 0; }
  .hero__caption-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero__caption-sub   { font-size: 0.85rem; max-width: 30ch; }

  .hero__final          { padding: 0 1.4rem; }
  .hero__final-title    { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero__final-sub      { font-size: 0.9rem; }
  .btn                  { --pad-y: 0.8rem; --pad-x: 1.4rem; font-size: 0.65rem; }
  .hero__scroll-hint    { bottom: 1.4rem; }

  .hero__welcome-eyebrow { font-size: 0.65rem; letter-spacing: 0.5em; margin-bottom: 1.5rem; }
  .hero__welcome-mark    { width: clamp(240px, 70vw, 340px); }
  .hero__welcome-name    { font-size: 0.7rem;  letter-spacing: 0.55em; margin-top: 0.6rem; }
  .hero__welcome-tag     { margin-top: 1.75rem; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__halo,
  .hero__scroll-line { animation: none; }
}
