/* ============================================
   Norrsken Avenue — Cinematic Scroll
   Full-screen immersive · Warm · Nordic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --canvas: #F5F0EA;
  --canvas-deep: #EDE6DC;
  --ink: #2C2420;
  --ink-light: #6B5E54;
  --ink-faint: #A89888;
  --accent: #7B6B8A;
  --accent-light: #C4B8CE;
  --vessel: #8B7355;
  --vessel-light: #B09A7C;
  --cream: #FAF8F5;
  --border: rgba(44, 36, 32, 0.08);

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  color: var(--cream);
  transition: background-color var(--duration) var(--ease-out),
              padding var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

.nav.scrolled {
  background-color: rgba(44, 36, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
  color: var(--cream);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 70px;
  width: auto;
  filter: invert(1) brightness(1.1);
  transition: opacity 0.3s var(--ease-out);
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(250, 248, 245, 0.4);
  border-radius: 2px;
  transition: background-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.nav-cta:hover {
  background-color: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: translateY(-1px);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out);
}

.btn-primary {
  background-color: var(--ink);
  color: var(--canvas);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(44, 36, 32, 0.15);
}

.btn-hero {
  background-color: rgba(250, 248, 245, 0.95);
  color: var(--ink);
}

.btn-hero:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Cinematic Sections
   ============================================ */

.cin-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Video background --- */
.cin-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* --- Static image background (Section 4) --- */
.cin-static-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* --- Overlays --- */
.cin-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hero: strong left gradient for text, subtle bottom warmth */
.cin-overlay--hero {
  background:
    linear-gradient(
      to right,
      rgba(30, 24, 20, 0.65) 0%,
      rgba(30, 24, 20, 0.35) 35%,
      rgba(30, 24, 20, 0.08) 65%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(30, 24, 20, 0.45) 0%,
      transparent 40%
    );
}

/* Center content: vignette */
.cin-overlay--center {
  background:
    radial-gradient(
      ellipse at center,
      rgba(30, 24, 20, 0.25) 0%,
      rgba(30, 24, 20, 0.55) 100%
    ),
    linear-gradient(
      to top,
      rgba(30, 24, 20, 0.4) 0%,
      transparent 35%
    ),
    linear-gradient(
      to bottom,
      rgba(30, 24, 20, 0.3) 0%,
      transparent 25%
    );
}

/* Soft: light overlay, more of the video visible */
.cin-overlay--soft {
  background:
    linear-gradient(
      to right,
      rgba(30, 24, 20, 0.55) 0%,
      rgba(30, 24, 20, 0.2) 40%,
      transparent 70%
    ),
    linear-gradient(
      to top,
      rgba(30, 24, 20, 0.4) 0%,
      transparent 35%
    );
}

/* Collection: very soft, preserve warmth and scene visibility */
.cin-overlay--collection {
  background:
    linear-gradient(
      to right,
      rgba(30, 24, 20, 0.45) 0%,
      rgba(30, 24, 20, 0.15) 40%,
      transparent 70%
    ),
    linear-gradient(
      to top,
      rgba(30, 24, 20, 0.35) 0%,
      transparent 30%
    );
}

/* Deep: balanced for static image, readable text without hiding the photo */
.cin-overlay--deep {
  background:
    radial-gradient(
      ellipse at center,
      rgba(30, 24, 20, 0.35) 0%,
      rgba(30, 24, 20, 0.55) 100%
    );
}

/* Story: strong overlay for text-heavy section */
.cin-overlay--story {
  background:
    radial-gradient(
      ellipse at center,
      rgba(30, 24, 20, 0.65) 0%,
      rgba(30, 24, 20, 0.82) 100%
    );
}

/* --- Logo Story Section --- */
.cin-story .cin-video {
  object-position: center 35%;
}

.cin-story {
  height: 100vh;
}

.story-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto 1fr;
  padding: 5.5rem var(--space-xl) var(--space-lg);
  max-width: 1320px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.story-logo {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
}

.story-logo-img {
  height: 340px;
  width: auto;
  filter: invert(1);
  opacity: 0.85;
}

.story-grid {
  display: contents;
}

.story-item {
  text-align: center;
  max-width: 380px;
}

.story-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
}

.story-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.story-item:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
}

.story-item:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
}

.story-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.story-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(245, 240, 234, 0.75);
  line-height: 1.8;
}

/* --- What's Included Section --- */
.cin-included .cin-static-bg {
  background-position: center 40%;
}

.cin-overlay--included {
  background:
    linear-gradient(
      to left,
      rgba(30, 24, 20, 0.85) 0%,
      rgba(30, 24, 20, 0.65) 35%,
      rgba(30, 24, 20, 0.25) 65%,
      rgba(30, 24, 20, 0.1) 100%
    );
}

.included-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 5.5rem var(--space-xl);
}

.included-text {
  text-align: right;
  margin-bottom: var(--space-md);
  max-width: 440px;
}

.included-text .cin-eyebrow {
  text-align: right;
}

.included-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 400px;
}

.included-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 240, 234, 0.1);
}

.included-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.included-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.included-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(245, 240, 234, 0.55);
  line-height: 1.65;
}

/* --- Content positioning --- */
.cin-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
}

.cin-content--bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--space-xl) clamp(var(--space-md), 8vw, 8rem);
  max-width: 650px;
}

.cin-content--center {
  text-align: center;
  max-width: 700px;
  padding: var(--space-md);
}

/* --- Typography --- */
.cin-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 240, 234, 0.5);
  margin-bottom: var(--space-md);
}

.cin-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--cream);
}

.cin-headline--md {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
}

.cin-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(245, 240, 234, 0.65);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.cin-body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 300;
  color: rgba(245, 240, 234, 0.6);
  line-height: 1.9;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Quote (Section 4) --- */
.cin-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(245, 240, 234, 0.8);
  margin-bottom: var(--space-xl);
  border: none;
}

/* --- Pillars (Section 4) --- */
.cin-pillars {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-md);
}

.cin-pillar h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.cin-pillar p {
  font-size: 0.85rem;
  color: rgba(245, 240, 234, 0.45);
  line-height: 1.6;
}

/* --- Scroll hint (hero only) --- */
.cin-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.4;
  transition: opacity 0.5s;
}

.cin-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Waitlist Section (kept from original)
   ============================================ */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.waitlist {
  background-color: var(--canvas);
  text-align: center;
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
}

.waitlist-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
  display: flex;
  gap: var(--space-sm);
  width: 100%;
}

.form-group input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}

.form-group input::placeholder { color: var(--ink-faint); }
.form-group input:focus { border-color: var(--vessel); }

.form-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: var(--space-sm);
  letter-spacing: 0.03em;
}

.waitlist-confirmation { display: none; }
.waitlist-confirmation.visible { display: block; }
.waitlist-confirmation p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-light);
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
  background-color: var(--canvas);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex: 1;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-faint);
  flex: 1;
  text-align: center;
}

.footer-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.footer-badge-img {
  height: 30px;
  width: auto;
  border-radius: 2px;
}

/* --- Reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.45s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .cin-video {
    object-position: center center;
  }

  .cin-content--bottom-left {
    padding: var(--space-lg) var(--space-md);
    max-width: 100%;
  }

  .cin-content--center {
    padding: var(--space-md);
  }

  .cin-headline {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .cin-headline--md {
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  }

  .cin-pillars {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  .cin-pillar {
    text-align: center;
  }

  /* --- Nav mobile --- */
  .nav {
    padding: 1rem 0;
  }

  .nav.scrolled {
    padding: 0.75rem 0;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .nav-logo-img {
    height: 44px;
  }

  .nav-cta {
    font-size: 0.65rem;
    padding: 0.5rem 0.9rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  /* --- Hero mobile --- */
  .cin-hero .cin-video {
    object-position: center 30%;
  }

  .cin-overlay--hero {
    background:
      linear-gradient(
        to top,
        rgba(30, 24, 20, 0.7) 0%,
        rgba(30, 24, 20, 0.3) 45%,
        transparent 70%
      );
  }

  .cin-hero .cin-content--bottom-left {
    padding: var(--space-lg) 1.2rem;
  }

  .cin-sub {
    font-size: 1rem;
    margin-bottom: var(--space-md);
  }

  .btn-hero {
    font-size: 0.72rem;
    padding: 0.8rem 1.8rem;
  }

  /* --- Transformation mobile --- */
  .cin-transform .cin-video {
    object-position: center 35%;
  }

  .cin-body {
    font-size: 0.9rem;
  }

  /* --- Included mobile --- */
  .cin-included {
    height: auto;
    min-height: 100vh;
  }

  .cin-included .cin-static-bg {
    background-position: center 30%;
  }

  .cin-overlay--included {
    background:
      linear-gradient(
        to top,
        rgba(30, 24, 20, 0.92) 0%,
        rgba(30, 24, 20, 0.7) 45%,
        rgba(30, 24, 20, 0.25) 70%,
        transparent 100%
      );
  }

  .included-content {
    align-items: flex-start;
    justify-content: flex-end;
    padding: var(--space-md) 1.2rem var(--space-lg);
  }

  .included-text {
    text-align: left;
    margin-bottom: var(--space-sm);
    max-width: 100%;
  }

  .included-text .cin-eyebrow {
    text-align: left;
  }

  .included-text .cin-headline--md {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .included-list {
    max-width: 100%;
    gap: 0;
  }

  .included-item {
    padding: 0.8rem 0;
  }

  .included-label {
    font-size: 1rem;
  }

  .included-desc {
    font-size: 0.78rem;
  }

  /* --- Collection mobile --- */
  .cin-collection .cin-video {
    object-position: center 40%;
  }

  /* --- Story mobile --- */
  .cin-story {
    height: auto;
    min-height: 100vh;
  }

  .story-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    padding: 5rem 1.2rem 1.5rem;
    gap: 0.3rem;
  }

  .story-grid {
    display: contents;
  }

  .story-logo {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.8rem;
  }

  .story-logo-img {
    height: 130px;
  }

  .story-item {
    max-width: 100%;
    padding: 0.6rem 0;
  }

  .story-item:nth-child(1) { grid-column: 1; grid-row: 2; justify-self: center; }
  .story-item:nth-child(2) { grid-column: 1; grid-row: 3; justify-self: center; }
  .story-item:nth-child(3) { grid-column: 1; grid-row: 4; justify-self: center; }
  .story-item:nth-child(4) { grid-column: 1; grid-row: 5; justify-self: center; }

  .story-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .story-text {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* --- Waitlist mobile --- */
  .waitlist {
    padding: var(--space-xl) 1.2rem;
  }

  .waitlist-sub {
    font-size: 0.95rem;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group .btn {
    width: 100%;
  }

  .form-group input {
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }

  /* --- Footer mobile --- */
  .footer {
    padding: var(--space-md) 1.2rem;
  }

  .footer-logo-img {
    height: 36px;
  }

  .footer-copy {
    font-size: 0.7rem;
  }

  .footer-badge-img {
    height: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 3rem;
    --space-lg: 2rem;
  }
}

/* --- Mobile: reduce motion / fallback --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cin-scroll-hint { display: none; }

  .cin-video {
    display: none;
  }
}
