/* =========================================================
   AROMATIS — Cinematic Scroll  |  style.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=DM+Sans:wght@200;300;400;500&display=swap');

:root {
  --gold:    #c9a96e;
  --gold2:   #e8cfa0;
  --cream:   #f5f0e8;
  --white:   #ffffff;
  --black:   #060605;
  --ease:    cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ── Progress bar ────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  z-index: 999;
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 32px 56px;
  display: flex; justify-content: space-between; align-items: center;
  transition: padding .5s var(--ease), background .5s, backdrop-filter .5s;
}
#nav.compact {
  padding: 18px 56px;
  background: rgba(6,6,5,.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,169,110,.1);
}
.nav-logo {
display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo b { color: var(--gold); font-weight: 400; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .68rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  transition: color .3s;
}
.nav-links a:hover { color: var(--gold); }

.logo-img {
  max-width: 180px; /* Adjusted for a cleaner look in the nav */
  height: auto;
  display: block;
  /* Optional: if your logo is dark, this makes it pop on the dark theme */
  filter: brightness(1) contrast(1); 
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-logo:hover .logo-img {
  transform: scale(1.02);
  opacity: 0.8;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .logo-img {
    max-width: 140px;
  }
}

/* ── Full-screen scene (base) ────────────── */
.scene {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.scene__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.scene__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,6,5,.3) 0%, rgba(6,6,5,.55) 100%);
}
.scene__text {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 40px;
}

/* ── Typography ──────────────────────────── */
.t-eyebrow {
  display: block;
  font-size: .62rem; font-weight: 400;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.t-hero {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 300; line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--white);
}
.t-hero em { font-style: italic; color: var(--gold2); }
.t-display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--white);
}
.t-display em { font-style: italic; color: var(--gold2); }
.t-sub {
  font-size: clamp(.85rem, 1.2vw, 1.05rem);
  font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,.78);
  max-width: 520px; margin: 0 auto;
}
.t-label {
  font-size: .62rem; letter-spacing: .3em;
  text-transform: uppercase; font-weight: 400;
  color: var(--gold);
}
.t-stat {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 300; line-height: .9;
  color: var(--white);
}
.t-stat-unit { font-size: .35em; vertical-align: super; color: var(--gold2); }
.t-stat-label {
  font-size: clamp(.9rem, 1.5vw, 1.2rem);
  font-weight: 300; color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  margin-top: 16px;
}
.gold-bar {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 28px auto;
}
.gold-bar.left { margin: 28px 0; }

/* ── HERO ────────────────────────────────── */
#hero .scene__bg {
  background-image: url('https://images.unsplash.com/photo-1608571423902-eed4a5ad8108?w=1920&q=85');
}
#hero .scene__shade {
  background: linear-gradient(160deg, rgba(6,6,5,.25) 0%, rgba(6,6,5,.7) 100%);
}
#hero .t-hero { opacity: 0; transform: translateY(36px); }
#hero .t-eyebrow { opacity: 0; transform: translateY(20px); }
#hero .t-sub { opacity: 0; transform: translateY(20px); margin-top: 28px; }
#hero .hero-cta { opacity: 0; transform: translateY(20px); }

#hero.loaded .t-eyebrow {
  animation: fadeUp .9s var(--ease) .2s forwards;
}
#hero.loaded .t-hero {
  animation: fadeUp 1s var(--ease) .4s forwards;
}
#hero.loaded .t-sub {
  animation: fadeUp .9s var(--ease) .75s forwards;
}
#hero.loaded .hero-cta {
  animation: fadeUp .9s var(--ease) 1s forwards;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 40px;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(201,169,110,.6);
  padding-bottom: 6px;
  transition: border-color .3s, color .3s;
}
.hero-cta:hover { color: var(--gold); border-color: var(--gold); }

.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp .8s ease 1.5s forwards;
}
.scroll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: bounce 1.6s ease infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: .4; }
}
.hero-scroll-hint span {
  font-size: .58rem; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* ── STICKY CHAPTER (wrapper) ────────────── */
.chapter {
  position: relative;
}
.chapter__pin {
  position: sticky;
  top: 0; height: 100vh;
  overflow: hidden;
}

/* ── CHAPTER: MISSION ────────────────────── */
#ch-mission { height: 100vh;
  overflow: hidden;
  background: var(--black); }
#ch-mission .chapter__pin .scene__bg {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=85');
}

/* ── Mission Navigation ── */
.mission-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  pointer-events: none;
}

.m-nav-btn {
  pointer-events: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: color 0.3s var(--ease);
}

.m-nav-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.m-nav-btn:hover {
  color: var(--gold);
}


/* Modify existing mission-phases to hide overflow properly */
.mission-phases {
  display: flex;
  width: 100%;
  overflow-x: hidden; /* Prevent manual scrolling */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.mission-phases::-webkit-scrollbar {
  display: none;
}
.m-phase {
flex: 0 0 100vw;       /* Each phase is exactly one screen wide */
  height: 80vh;          /* Height of the mission area */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start; /* Forces the jump to line up perfectly with the edge */
  position: relative;
}
/* Ensure the text is visible and ready for the 'active' state */
.m-phase .t-display {
  opacity: 0.2;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.m-phase.active .t-display {
  opacity: 1;
  transform: scale(1);
}

/* ── CHAPTER: STATS ──────────────────────── */
#ch-stats { height: 400vh; }
#ch-stats .chapter__pin .scene__bg {
  background-image: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1920&q=85');
  background-position: center 30%;
}
.stats-phases {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.s-phase {
  position: absolute;
  text-align: center;
  opacity: 0; transform: scale(.96);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.s-phase.active { opacity: 1; transform: scale(1); }

/* ── CHAPTER: AROMAS ─────────────────────── */
#ch-aromas { height: 100vh; }
.aromas-bg-stack {
  position: absolute; inset: 0;
}
.aroma-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.aroma-bg.active { opacity: 1; }

.aromas-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end;
  padding: 0 80px 100px;
}
.aroma-panel {
  position: absolute;
  bottom: 100px; left: 80px;
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.aroma-panel.active { opacity: 1; transform: translateY(0); }
.aroma-index {
  font-size: .6rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.aroma-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300; line-height: .95;
  color: var(--white);
}
.aroma-subtitle {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 300; color: var(--gold2);
  margin-top: 8px;
}
.aroma-notes {
  margin-top: 20px;
  font-size: .8rem; font-weight: 300;
  letter-spacing: .12em;
  color: rgba(255,255,255,.65);
}
.aroma-progress {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 10;
}
.ap-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .4s, transform .4s;
}
.ap-dot.active { background: var(--gold); transform: scale(1.5); }

/* ── Aromas Navigation ── */
.aroma-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  pointer-events: none;
}

.a-nav-btn {
  pointer-events: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: color 0.3s var(--ease);
}

.a-nav-btn:hover {
  color: var(--gold);
}

/* Hide buttons when they reach the boundaries */
.a-nav-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── CHAPTER: TECHNOLOGY ─────────────────── */
#ch-tech { height: 100vh; }
#ch-tech .chapter__pin .scene__bg {
  background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1920&q=85');
}
.tech-phases {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Hide the scrollbar */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.tech-phase {
flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10vw;
  scroll-snap-align: start;
}
.tech-phase.active { opacity: 1; transform: translateX(0); }
.tech-spec {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.tech-spec-row {
  display: flex; justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201,169,110,.15);
  padding-bottom: 16px;
  font-size: .82rem; font-weight: 300;
  color: rgba(255,255,255,.7);
}
.tech-spec-val { color: var(--gold2); font-weight: 400; }
/* Navigation Arrows Styling */
.tech-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  pointer-events: none;
}

.t-nav-btn {
  pointer-events: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: color 0.3s var(--ease);
}

.t-nav-btn:hover {
  color: var(--gold);
}

.t-nav-btn.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Container for the two columns */
.tech-comparison-grid {
  display: flex;
  gap: 80px; /* Space between columns */
  width: 100%;
  max-width: 1200px;
  align-items: flex-start;
}

/* Individual column styling */
.tech-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Adjusting the display text for the side-by-side look */
.tech-column .t-display {
  font-size: 2.5rem; /* Slightly smaller to fit side-by-side */
  margin-bottom: 20px;
}

  
  .tech-column .t-display {
    font-size: 1.8rem;
  }
}

/* ── IMPACT SCENE ────────────────────────── */
#impact {
  position: relative; height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#impact .scene__bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1585559604959-bf8d3448782a?w=1920&q=85') center/cover;
  filter: brightness(.22) saturate(.6);
}
.impact-content {
  position: relative; z-index: 2;
  text-align: center;
}
.impact-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 20vw, 22rem);
  font-weight: 300; line-height: .85;
  color: var(--white);
  opacity: 0; transform: scale(.92);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.impact-big.visible { opacity: 1; transform: scale(1); }
.impact-big span { color: var(--gold); font-style: italic; }
.impact-label {
  margin-top: 32px;
  font-size: clamp(.9rem, 1.5vw, 1.15rem);
  font-weight: 300; color: rgba(255,255,255,.75);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s;
}
.impact-label.visible { opacity: 1; transform: translateY(0); }

/* ── PROCESS SCENE ───────────────────────── */
#process {
  position: relative;
  overflow: hidden;
}
#process .scene__bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1490750967868-88df5691cc8c?w=1920&q=85') center/cover fixed;
  filter: brightness(.28) saturate(.5);
}
.process-inner {
  position: relative; z-index: 2;
  padding: 140px 10vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.process-header { position: sticky; top: 100px; }
.steps { display: flex; flex-direction: column; }
.step-item {
  padding: 44px 0;
  border-bottom: 1px solid rgba(201,169,110,.15);
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.step-item:first-child { border-top: 1px solid rgba(201,169,110,.15); }
.step-item.visible { opacity: 1; transform: translateY(0); }
.step-n {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 300;
  color: rgba(201,169,110,.25);
  line-height: 1;
  transition: color .3s;
}
.step-item:hover .step-n { color: var(--gold); }
.step-h {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--white); margin-bottom: 10px;
}
.step-p {
  font-size: .82rem; font-weight: 300;
  line-height: 1.9; color: rgba(255,255,255,.6);
}

/* ── MARQUEE ──────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: rgba(201,169,110,.07);
  border-top: 1px solid rgba(201,169,110,.12);
  border-bottom: 1px solid rgba(201,169,110,.12);
  padding: 20px 0;
}
.marquee-track {
  display: flex; gap: 0;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  flex-shrink: 0;
  padding: 0 48px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 300;
  color: rgba(201,169,110,.7);
  letter-spacing: .1em;
}
.marquee-item::after {
  content: '·';
  margin-left: 48px;
  color: rgba(201,169,110,.3);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── CERTS STRIP ─────────────────────────── */
#certs {
  background: #0d0d0b;
  padding: 80px 10vw;
  display: flex; align-items: center;
  justify-content: center; gap: 100px;
  border-top: 1px solid rgba(201,169,110,.08);
}
.cert-block { text-align: center; }
.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 300;
  color: rgba(255,255,255,.35);
  letter-spacing: .08em;
  transition: color .4s;
}
.cert-block:hover .cert-name { color: var(--gold); }
.cert-sub {
  font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22); margin-top: 8px;
}

/* ── CONTACT SCENE ───────────────────────── */
#contact {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: stretch;
}
#contact .scene__bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?w=1920&q=85') center/cover;
  filter: brightness(.18) saturate(.4);
}
.contact-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
}
.contact-left {
  padding: 120px 60px 120px 10vw;
  border-right: 1px solid rgba(201,169,110,.1);
}
.contact-details { margin-top: 48px; display: flex; flex-direction: column; gap: 22px; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  font-size: .85rem; font-weight: 300;
  color: rgba(255,255,255,.65);
}
.contact-line svg { width: 14px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.contact-right { padding: 120px 10vw 120px 60px; }
.cf { display: flex; flex-direction: column; gap: 28px; }
.cf-group { display: flex; flex-direction: column; gap: 8px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf-group label {
  font-size: .58rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
.cf-group input,
.cf-group textarea,
.cf-group select {
  background: transparent;
  border: none; border-bottom: 1px solid rgba(201,169,110,.25);
  padding: 12px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 300;
  color: var(--white); outline: none;
  transition: border-color .3s;
}
.cf-group input:focus,
.cf-group textarea:focus,
.cf-group select:focus { border-color: var(--gold); }
.cf-group textarea { resize: none; height: 90px; }
.cf-group select option { background: #1a1a16; }
.cf-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(201,169,110,.5);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem; font-weight: 500;
  letter-spacing: .25em; text-transform: uppercase;
  padding: 18px 48px; cursor: none;
  position: relative; overflow: hidden;
  transition: color .4s var(--ease), border-color .4s;
}
.cf-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-105%);
  transition: transform .45s var(--ease);
}
.cf-btn:hover { color: var(--black); border-color: var(--gold); }
.cf-btn:hover::before { transform: translateX(0); }
.cf-btn span { position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────── */
#footer {
  background: var(--black);
  padding: 40px 10vw;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(201,169,110,.08);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: rgba(255,255,255,.4);
}
.footer-copy { font-size: .68rem; color: rgba(255,255,255,.25); letter-spacing: .08em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }

/* ── Keyframes ───────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  #nav { padding: 22px 28px; }
  #nav.compact { padding: 14px 28px; }
  .nav-links { display: none; }

  .process-inner { grid-template-columns: 1fr; gap: 48px; padding: 80px 6vw; }
  .process-header { position: static; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-left { padding: 80px 6vw 40px; border-right: none; border-bottom: 1px solid rgba(201,169,110,.1); }
  .contact-right { padding: 40px 6vw 80px; }

  .aroma-panel { left: 28px; bottom: 60px; }
  .aroma-progress { right: 28px; }
  .aromas-overlay { padding: 0 28px 60px; }

  .tech-phases { padding: 0 6vw; }
  .tech-phase { max-width: 100%; }

  #certs { flex-wrap: wrap; gap: 48px; padding: 60px 6vw; }

  #footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .cf-row { grid-template-columns: 1fr; }

  .mission-phases, .stats-phases { padding: 0 24px; }
  .m-phase { padding: 0 24px; }

  .t-hero { font-size: clamp(2.6rem, 9vw, 4rem); }
}
