/* ═══════════════════════════════════════════════════════════
   CENSE.IN — Design System v2.0
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --ivory:   #F7F3EC;
  --charcoal:#1D1B19;
  --maroon:  #6D1F2D;
  --brown:   #4A3528;
  --gold:    #B8995A;
  --moss:    #6F7765;

  --f-head: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --ease:   cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; }

/* ─── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--gold);
  z-index: 999;
  pointer-events: none;
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 48px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Left — logo (SVG with currentColor) */
.nav-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  /* SVG uses currentColor — set via filter since it's an <img> */
  filter: brightness(0) invert(1); /* white on dark sections */
  transition: filter 0.5s ease;
}
.nav.on-light .nav-logo {
  filter: brightness(0); /* dark on light sections */
}

/* Right — chapter indicator */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(247,243,236,0.8);
  transition: color 0.4s ease;
}
.nav.on-light .nav-right {
  color: rgba(29,27,25,0.6);
}
.nav-num {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav-name {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.nav-rule {
  display: block;
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video replaces the static photo */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Poster image shows on mobile while video loads */
  background-image: url('assets/hero-kamakhya.png');
  background-size: cover;
  background-position: center;
}

/* Warm amber grade + left darkening — matches the golden sunset photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(12, 8, 4, 0.82) 0%,
      rgba(12, 8, 4, 0.62) 35%,
      rgba(12, 8, 4, 0.22) 65%,
      rgba(12, 8, 4, 0.04) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 5, 2, 0.25) 0%,
      transparent 40%,
      rgba(8, 5, 2, 0.35) 100%
    );
  z-index: 1;
}

/* Top-centre cense.in logo */
.hero-top-logo {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-logo-center {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Content block — left-aligned, vertically centered */
.hero-body {
  position: relative;
  z-index: 2;
  padding: 0 72px;
  max-width: 580px;
}

/* Actual cense icon above statements */
.hero-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 36px;
}
.hero-icon img {
  width: 100%;
  height: 100%;
  /* Render in gold */
  filter: brightness(0) saturate(100%) invert(64%) sepia(32%) saturate(520%) hue-rotate(358deg) brightness(92%);
}

/* Three stacked statements */
.hero-statements {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 56px;
}

.hero-stmt {
  font-family: var(--f-head);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 300;
  color: rgba(247, 243, 236, 0.92);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* Gold divider between statements */
.hero-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  margin: 24px 0;
}

/* Scroll cue */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: rgba(247, 243, 236, 0.28);
}
.hero-scroll span {
  font-family: var(--f-body);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── HERO RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 680px) {
  .hero-body { padding: 0 28px; max-width: none; }
  .hero-stmt { font-size: 1.4rem; }
}

/* ─── STORY SECTIONS ──────────────────────────────────────── */
.story {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Photo layer — full bleed, parallax-ready */
.photo {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Directional overlays — stronger on the content side */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.overlay-left {
  background: linear-gradient(
    to right,
    rgba(10,8,6,0.82) 0%,
    rgba(10,8,6,0.55) 40%,
    rgba(10,8,6,0.15) 70%,
    rgba(10,8,6,0.0) 100%
  );
}
.overlay-right {
  background: linear-gradient(
    to left,
    rgba(10,8,6,0.82) 0%,
    rgba(10,8,6,0.55) 40%,
    rgba(10,8,6,0.15) 70%,
    rgba(10,8,6,0.0) 100%
  );
}

/* ─── STORY BODY — content positioned above the strip ─────── */
.story-body {
  position: absolute;
  left: 56px;
  bottom: 132px;
  max-width: 52vw; /* wide enough for long names like KARBI ANGLONG */
  z-index: 2;
  padding-right: 24px; /* breathing room from edge */
}
.story-body.align-right {
  left: auto;
  right: 56px;
  text-align: right;
  padding-right: 0;
  padding-left: 24px;
}

/* Chapter name — large display, wraps gracefully for long names */
.ch-name {
  font-family: var(--f-head);
  font-size: clamp(3rem, 6.5vw, 7.5rem);
  font-weight: 300;
  overflow-wrap: break-word;
  word-break: break-word;
  color: var(--ivory);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Italic headline */
.ch-headline {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  font-weight: 300;
  color: rgba(247,243,236,0.9);
  line-height: 1.25;
  margin-bottom: 24px;
}
.ch-headline em {
  font-style: italic;
}

/* Body copy */
.ch-copy {
  font-family: var(--f-body);
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(247,243,236,0.55);
  font-weight: 300;
  max-width: 290px;
  margin-bottom: 44px;
  letter-spacing: 0.01em;
}
.story-body.align-right .ch-copy {
  margin-left: auto;
}

/* Scroll indicator */
.ch-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: rgba(247,243,236,0.35);
}
.story-body.align-right .ch-scroll {
  align-items: flex-end;
}
.ch-scroll span {
  font-family: var(--f-body);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}
.arrow-svg {
  width: 16px;
  height: 32px;
  color: inherit;
  animation: arrowDrop 2.4s ease-in-out infinite;
}
@keyframes arrowDrop {
  0%, 100% { opacity: 0.3; transform: translateY(-2px); }
  50%       { opacity: 1;   transform: translateY(2px); }
}

/* ─── CHAPTER STRIP ───────────────────────────────────────── */
.ch-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 112px;
  background: var(--ivory);
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 56px;
  gap: 28px;
}
.strip-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.strip-icon img {
  width: 100%;
  height: 100%;
  /* Render icon in gold (#B8995A) */
  filter: brightness(0) saturate(100%) invert(64%) sepia(32%) saturate(520%) hue-rotate(358deg) brightness(92%);
}
.strip-copy {
  font-family: var(--f-body);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--charcoal);
  font-weight: 300;
  max-width: 440px;
  flex: 1;
  letter-spacing: 0.01em;
}
.strip-counter {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(29,27,25,0.3);
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-left: auto;
}
.strip-counter em {
  color: var(--maroon);
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
}

/* ─── PHOTO BACKGROUNDS ───────────────────────────────────── */
/* Sections with real photos use background-image + cover.
   Sections still waiting for photos use gradient placeholders.
   To add a photo: set background-image: url('assets/filename.jpg')
   and keep background-size: cover; background-position: center;
   The .overlay div handles the directional darkening. */

.kamakhya-photo {
  background-image: url('assets/kamakhya.png');
  background-size: cover;
  background-position: center 40%;
}
.karbi-photo {
  background-image: url('assets/karbi-anglong.jpg');
  background-size: cover;
  background-position: center center;
}
.agarwood-photo {
  background-image: url('assets/agarwood.jpg');
  background-size: cover;
  background-position: center center;
}
.hills-photo {
  background-image: url('assets/assam-hills.jpg');
  background-size: cover;
  background-position: center 60%;
}
.meghalaya-photo {
  background-image: url('assets/meghalaya.jpg');
  background-size: cover;
  background-position: center center;
}
.making-photo {
  background-image: url('assets/making.png');
  background-size: cover;
  background-position: center 30%;
}

/* ─── LIGHT SECTIONS ──────────────────────────────────────── */
.light-section {
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.section-inner {
  max-width: 860px;
  width: 100%;
  padding: 120px 56px;
}
.align-center { text-align: center; margin: 0 auto; }

.section-label {
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}

.light-headline {
  font-family: var(--f-head);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}
.light-headline em { font-style: italic; }

/* ─── BOTANICALS ──────────────────────────────────────────── */
.botanicals-section { border-top: 1px solid rgba(74,53,40,0.1); }
.botanicals-section .light-headline { margin-bottom: 72px; }

.botanicals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(74,53,40,0.12);
  border-top: 1px solid rgba(74,53,40,0.12);
  max-width: 620px;
  margin: 0 auto;
}
.botanical {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px;
  border-right: 1px solid rgba(74,53,40,0.12);
  border-bottom: 1px solid rgba(74,53,40,0.12);
  gap: 12px;
  transition: background 0.4s ease;
}
.botanical:hover { background: rgba(74,53,40,0.04); }
.b-glyph {
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.55;
}
.botanical span {
  font-family: var(--f-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}
.botanical small {
  font-family: var(--f-body);
  font-size: 0.6rem;
  color: var(--brown);
  opacity: 0.55;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ─── KAMYA REVEAL ────────────────────────────────────────── */
.kamya-section {
  background: #0F0D0B;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kamya-inner {
  text-align: center;
  padding: 120px 48px;
  width: 100%;
}
.kamya-pre {
  font-family: var(--f-body);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 32px;
  display: block;
}
.kamya-name {
  font-family: var(--f-head);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin-bottom: 20px;
  font-style: italic;
}
.kamya-logo-img {
  height: clamp(56px, 10vw, 120px);
  width: auto;
  max-width: 560px;
  margin: 0 auto 24px;
  display: block;
  /* SVG is dark — invert to white on the dark KAMYA section */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.kamya-by {
  font-family: var(--f-body);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 52px;
  display: block;
  font-weight: 400;
}
.kamya-desc {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(247,243,236,0.4);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 96px;
}
.kamya-product { display: flex; justify-content: center; }
.kamya-product-img {
  max-height: 60vh;
  max-width: 480px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
}
.product-stand {
  width: 160px;
  height: 260px;
  border: 1px solid rgba(184,153,90,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(184,153,90,0.3);
  font-family: var(--f-body);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}
.product-rule {
  width: 28px;
  height: 1px;
  background: rgba(184,153,90,0.2);
}

/* ─── CRAFT SECTION ───────────────────────────────────────── */
.collection-section {
  border-top: 1px solid rgba(74,53,40,0.1);
  padding: 120px 56px 140px;
  align-items: flex-start;
}

.craft-head {
  max-width: 1280px;
  margin: 0 auto 96px;
  width: 100%;
}
.craft-head .light-headline { margin-top: 12px; }

.craft-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid rgba(74,53,40,0.12);
}

.craft-pillar {
  border-right: 1px solid rgba(74,53,40,0.12);
  padding: 0 56px 0 48px;
}

.pillar-rule {
  width: 100%;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin-bottom: 36px;
}

.pillar-num {
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.7;
}

.pillar-title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.pillar-body {
  font-family: var(--f-body);
  font-size: 0.82rem;
  line-height: 1.95;
  color: var(--brown);
  font-weight: 300;
  margin-bottom: 32px;
}

.pillar-note {
  font-family: var(--f-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
  opacity: 0.45;
}

@media (max-width: 960px) {
  .craft-pillars { grid-template-columns: 1fr; border-left: none; }
  .craft-pillar { border-right: none; border-top: 1px solid rgba(74,53,40,0.12); padding: 48px 0 0; margin-bottom: 48px; }
  .collection-section { padding: 80px 32px 100px; }
}

/* ─── ABOUT ───────────────────────────────────────────────── */
.about-section {
  border-top: 1px solid rgba(74,53,40,0.1);
  min-height: 65vh;
  justify-content: center;
}
.about-body {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--brown);
  max-width: 500px;
  margin: 32px auto 0;
  font-style: italic;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer-icon-img {
  width: 36px;
  height: 36px;
  opacity: 0.25;
  filter: brightness(0) invert(1); /* white on charcoal background */
}

.footer {
  background: var(--charcoal);
  padding: 80px 56px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.footer-mark {
  font-family: var(--f-head);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 0.18em;
}
.footer-links {
  display: flex;
  gap: 40px;
}
.footer-links a {
  font-family: var(--f-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.35);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  font-family: var(--f-body);
  font-size: 0.62rem;
  color: rgba(247,243,236,0.18);
  letter-spacing: 0.08em;
}

/* ─── SCROLL ANIMATIONS ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.16s; }
.d2 { transition-delay: 0.30s; }
.d3 { transition-delay: 0.44s; }
.d4 { transition-delay: 0.58s; }
.d5 { transition-delay: 0.72s; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .fragrances-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-head { padding: 0 32px; }
}
@media (max-width: 680px) {
  .nav { padding: 20px 24px; }
  .nav-rule { width: 36px; }
  .fragrances-grid { grid-template-columns: 1fr; }
  .botanicals-grid { grid-template-columns: repeat(2, 1fr); }
  .story-body { left: 28px; right: 28px; max-width: none; bottom: 128px; padding-right: 0; }
  .story-body.align-right { left: 28px; right: 28px; text-align: left; padding-left: 0; }
  .story-body.align-right .ch-copy { margin-left: 0; }
  .story-body.align-right .ch-scroll { align-items: flex-start; }
  .hero-top-logo { top: 24px; }
  .hero-body { padding: 0 28px; }
  .ch-strip { padding: 0 28px; gap: 16px; }
  .strip-copy { font-size: 0.72rem; }
  .section-inner { padding: 88px 28px; }
  .collection-section { padding-top: 72px; }
  .hero-headline { font-size: 3rem; }
  .footer { padding: 64px 28px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}
