/**
 * Premium design layer — Apple-inspired
 * Gradients, bold typography, eye-catching animations, loved details.
 * Load after theme + animations so it can override.
 */

/* ─── Gradient tokens ─── */
:root {
  --gradient-gold: linear-gradient(135deg, #b8860b 0%, #c49a4a 35%, #e8c870 70%, #f0d878 100%);
  --gradient-gold-soft: linear-gradient(135deg, rgba(196,154,74,.9) 0%, rgba(232,200,112,.95) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(13,13,11,0.4) 0%, rgba(13,13,11,0.75) 50%, rgba(13,13,11,0.95) 100%);
  --gradient-hero-mesh: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196,154,74,.08) 0%, transparent 55%),
                       radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232,200,112,.05) 0%, transparent 50%);
  --gradient-text-gold: linear-gradient(135deg, #e8c870 0%, #c49a4a 50%, #9e7b3a 100%);
  --gradient-ticker: linear-gradient(90deg, transparent 0%, rgba(196,154,74,.06) 50%, transparent 100%);
  --shadow-glow-gold: 0 0 40px rgba(196,154,74,.25);
  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,.25);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ─── Hero: 5th slide ─── */
.hero-photos .hphoto.hp5 {
  background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}
/* Journey slides 6–8: distinct images (storage, port, market) */
.hero-photos .hphoto.hp6 {
  background-image: url('https://images.unsplash.com/photo-1578575437130-527eed7abbec?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.hero-photos .hphoto.hp7 {
  background-image: url('https://images.unsplash.com/photo-1566576721346-d4a3d4a0e1e6?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.hero-photos .hphoto.hp8 {
  background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

/* ─── Hero journey: slide captions (image + text), Apple-style ─── */
.hero-journey .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-journey .hslide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 5rem 5rem 8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease-apple), visibility 0.8s;
}
.hero-journey .hslide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-journey .journey-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold3);
  margin-bottom: 0.75rem;
}
.hero-journey .journey-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.hero-journey .journey-desc {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin: 0;
}
/* Stronger gradient under journey text for readability (Apple-style) */
.hero-journey .hero-photos::after {
  background: linear-gradient(180deg, rgba(13,13,11,0.25) 0%, rgba(13,13,11,0.6) 45%, rgba(13,13,11,0.92) 100%);
}
@media (max-width: 767px) {
  .hero-journey .hslide {
    padding: 3rem 1.5rem 6rem;
    justify-content: center;
  }
  .hero-journey .journey-title { max-width: none; }
  .hero-journey .journey-desc { max-width: none; }
}

/* ─── Hero: gradient overlay + mesh, bolder headline ─── */
.hero {
  position: relative;
}
/* One-time hero title entrance — Apple-style (non-journey hero) */
.hero-word-wrap {
  position: relative;
  z-index: 2;
  animation: heroReveal 1.2s var(--ease-apple) 0.3s both;
}
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
  z-index: 1;
}
.hero-photos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  pointer-events: none;
  z-index: 1;
}
/* Hero: cycling headline — designer refinements (optical balance, warmth, depth) */
.hero .hero-word-wrap {
  z-index: 10;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* Soft vignette behind type only — no box, just better contrast on any slide */
.hero .hero-word-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 70% 50% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: -1;
}
/* Main word: theme gold gradient, layered shadow, optical center */
.hero .hword.hword-brand,
.hero .hword {
  position: absolute;
  left: 50%;
  top: 46%;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--gold3);
  -webkit-text-fill-color: transparent;
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 200%;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(14px) scale(0.98);
  transition: opacity 0.55s var(--ease-apple), transform 0.55s var(--ease-apple);
  -webkit-font-smoothing: antialiased;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.4)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)) drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
}
.hero .hword.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}
/* Brand line: confident scale, tight tracking */
.hero .hword.hword-brand {
  font-size: clamp(3.6rem, 11.5vw, 7.2rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero .hword:not(.hword-brand) {
  font-size: clamp(4.2rem, 12.5vw, 8.5rem);
  letter-spacing: -0.02em;
}

/* Different font per word — intuitive personality per slide */
.hero .hero-word-wrap .hword:nth-child(1) {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero .hero-word-wrap .hword:nth-child(2) {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition-duration: 0.5s;
}
.hero .hero-word-wrap .hword:nth-child(3) {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  transition-duration: 0.6s;
}
.hero .hero-word-wrap .hword:nth-child(4) {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(3.4rem, 10vw, 7rem);
  transition-duration: 0.48s;
}
.hero .hero-word-wrap .hword:nth-child(5) {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition-duration: 0.58s;
}
/* Subline: light gold to match theme, staggered fade, open tracking */
.hero .hword em,
.hero .hword .hw-intl {
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(232, 212, 170, 0.95);
  -webkit-text-fill-color: rgba(232, 212, 170, 0.95);
  opacity: 0;
  transition: opacity 0.45s var(--ease-apple) 0.06s;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}
.hero .hword.active em,
.hero .hword.active .hw-intl {
  opacity: 1;
}
.hero .hword .hw-intl {
  font-style: normal;
  font-size: 0.38em;
  margin-top: 0.28em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
/* Non-hero gradient words (if used elsewhere) */
.hword.hword-brand,
.hword {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8c870;
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}
.hword em,
.hword .hw-intl {
  color: rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hword .hw-intl { font-style: normal; }
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Hero tagline: solid so always visible on slideshow */
.hero .hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.hero .hero-tagline strong {
  color: #f0d878;
  -webkit-text-fill-color: #f0d878;
  background: none;
  font-weight: 600;
}
.hero-tagline strong {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* ─── Buttons: gradient + glow on hover ─── */
.hero-btns .btnf {
  background: var(--gradient-gold);
  background-size: 200% 200%;
  font-weight: 500;
  letter-spacing: 0.2em;
  box-shadow: 0 4px 20px rgba(158,123,58,.35);
  transition: transform 0.4s var(--ease-apple), box-shadow 0.4s ease, background-position 0.5s ease;
}
.hero-btns .btnf:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-glow-gold), 0 8px 30px rgba(158,123,58,.4);
  background-position: 100% 50%;
}
.btng {
  font-weight: 500;
  letter-spacing: 0.2em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.btng:hover {
  color: #fff;
  text-shadow: 0 0 24px rgba(232,200,112,.5);
}

/* ─── Ticker: subtle gradient strip ─── */
.ticker {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.ticker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-ticker);
  background-size: 200% 100%;
  animation: ticker-shine 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ticker-shine {
  0%, 100% { opacity: 0.6; background-position: 0% 0%; }
  50% { opacity: 1; background-position: 100% 0%; }
}

/* Intro section: subtle gradient background for depth */
.intro {
  background: linear-gradient(180deg, var(--white) 0%, var(--off) 100%);
}

/* ─── Eyebrows + headings: bolder, gradient accent ─── */
.ey {
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.ey::before {
  background: var(--gradient-gold);
  height: 2px;
  width: 28px;
}
h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}
h2 em {
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold2), var(--gold3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-big {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.intro-big em {
  font-weight: 600;
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Stats: bolder numbers ─── */
.istat .n,
.inum .n {
  font-weight: 500;
  letter-spacing: -0.02em;
}
.istat .n em,
.inum .n em {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Product sections: image zoom + gradient overlay on hover ─── */
.psec-photogrid,
.pgimg,
.vs-img {
  overflow: hidden;
  position: relative;
}
.pgimg img,
.vs-img img {
  transition: transform 1s var(--ease-out-expo);
  will-change: transform;
}
.pgimg:hover img,
.vs-img:hover img {
  transform: scale(1.08);
}
.pgimg::after,
.vs-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,11,.25) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.pgimg:hover::after,
.vs-img:hover::after {
  opacity: 1;
}

/* ─── Cards: lift + soft shadow + border glow ─── */
.scard,
.rcard {
  transition: transform 0.5s var(--ease-apple), box-shadow 0.5s ease, border-color 0.3s ease;
}
.scard:hover,
.rcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.scard::before {
  background: var(--gradient-gold);
  height: 3px;
}
.rcard::after {
  height: 3px;
  background: var(--gradient-gold);
}

/* ─── Vessel section: title gradient ─── */
.vessel-header h2 {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.92) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vessel-header h2 em {
  -webkit-text-fill-color: var(--gold3);
}

/* ─── Quote block: gradient line ─── */
.qline {
  background: var(--gradient-gold);
  height: 2px;
  width: 60px;
}

/* ─── Scroll indicator: smoother animation ─── */
.hscroll-bar::after {
  background: var(--gradient-gold);
  animation: sdrop 2.8s 1.2s var(--ease-apple) infinite;
}

/* ─── Nav: bolder logo + gradient hover ─── */
.nlogo {
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}
.nlogo:hover {
  opacity: 0.9;
}
.ncta {
  font-weight: 500;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ncta:hover {
  box-shadow: 0 0 24px rgba(196,154,74,.35);
}

/* ─── Footer: gradient accent on logo ─── */
.flogo em {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 500;
}

/* ─── Dark theme: gradient for non-hero headings ─── */
body.theme-dark .hword.hword-brand,
body.theme-dark .hword {
  color: #f0d878;
  background: linear-gradient(135deg, #f5e6a8 0%, #e8c870 35%, #c49a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-dark .hword .hw-intl {
  color: rgba(255, 255, 255, 0.85);
}
/* Hero: always solid text so it shows on slideshow (override theme) */
body.theme-dark .hero .hword.hword-brand,
body.theme-dark .hero .hword {
  color: var(--gold3);
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #f0d878 0%, #e8c870 40%, #c49a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body.theme-dark .hero .hword .hw-intl {
  color: rgba(232, 212, 170, 0.95);
  -webkit-text-fill-color: rgba(232, 212, 170, 0.95);
}
body.theme-dark .intro-big em,
body.theme-dark h2 em {
  background: linear-gradient(135deg, var(--gold3), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Product list: gradient accent on hover ─── */
.prod-item {
  border-inline-start: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease, padding-inline-start 0.3s ease;
}
.prod-item:hover {
  border-inline-start-color: var(--gold);
}

/* Scroll-to-section: offset for fixed header so content isn’t cut behind bar */
#about,
#vessel,
#products,
#markets,
#journey,
#contact {
  scroll-margin-top: 5.5rem;
}

/* ─── Journey section: From source to market (Apple-style) ─── */
.journey-section {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  /* no overflow:hidden — breaks position:sticky for scroll-capture */
}
.journey-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(196,154,74,.06) 0%, transparent 55%),
              radial-gradient(ellipse 80% 40% at 80% 100%, rgba(232,200,112,.04) 0%, transparent 50%);
  pointer-events: none;
}
.journey-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 2rem 5rem;
  padding-top: 6rem; /* clear of fixed top bar */
  max-width: 720px;
  margin: 0 auto;
}
.journey-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold3);
  margin: 0 0 1.25rem;
}
.journey-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.journey-intro {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
/* Scroll-wrap: only on desktop for Apple-style scroll capture */
.journey-scroll-wrap {
  position: relative;
  z-index: 1;
}
.journey-sticky {
  position: relative;
  overflow: visible;
}
.journey-track {
  /* transform applied by JS for scroll-driven animation */
}
.journey-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.journey-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  max-height: 900px;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.journey-step:first-of-type {
  border-top: none;
}

/* Desktop: scroll capture — main scroll “pauses”, content scrolls through 8 stages */
@media (min-width: 1025px) {
  .journey-scroll-wrap {
    height: 800vh; /* 8 viewports of scroll */
  }
  .journey-sticky {
    position: sticky;
    top: 5.5rem; /* below fixed header so content is not cut */
    height: calc(100vh - 5.5rem);
    overflow: hidden;
  }
  .journey-track {
    height: 800vh;
    will-change: transform;
  }
  .journey-steps .journey-step {
    min-height: calc(100vh - 5.5rem);
    max-height: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}
.journey-step--reverse {
  direction: rtl;
}
.journey-step--reverse > * {
  direction: ltr;
}
.journey-step-media {
  background: var(--step-img) center/cover no-repeat;
  min-height: 50vh;
}
.journey-step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 5rem;
  position: relative;
}
.journey-step--reverse .journey-step-content {
  padding: 4rem 5rem 4rem 4rem;
}
.journey-step-num {
  font-family: 'DM Mono', monospace;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold3);
  opacity: 0.14;
  margin-bottom: -0.15em;
  position: absolute;
  top: 50%;
  left: 5rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.journey-step--reverse .journey-step-num {
  left: auto;
  right: 5rem;
}
.journey-step-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}
.journey-step-desc {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 38ch;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .journey-step {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    direction: ltr;
  }
  .journey-step--reverse {
    direction: ltr;
  }
  .journey-step-media {
    min-height: 45vh;
    max-height: 380px;
  }
  .journey-step-content {
    padding: 3rem 2rem 3.5rem;
  }
  .journey-step--reverse .journey-step-content {
    padding: 3rem 2rem 3.5rem;
  }
  .journey-step-num {
    position: static;
    transform: none;
    margin-bottom: 0.5rem;
    font-size: clamp(3.5rem, 15vw, 5rem);
    opacity: 0.12;
  }
  .journey-step--reverse .journey-step-num {
    right: auto;
    left: 2rem;
  }
  .journey-header {
    padding: 5rem 1.5rem 4rem;
  }
}
@media (max-width: 600px) {
  .journey-step-media {
    min-height: 35vh;
    max-height: 280px;
  }
  .journey-step-content {
    padding: 2.5rem 1.5rem 3rem;
  }
  .journey-step-num {
    font-size: 3rem;
  }
  .journey-header {
    padding: 4rem 1rem 3rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-word-wrap { animation: none; }
  .hword.hword-brand,
  .hword { animation: none; }
  .ticker::before { animation: none; }
  .hero .hword,
  .hero .hword em,
  .hero .hword .hw-intl {
    transition-duration: 0.05s;
    transition-delay: 0s;
  }
  .hero .hword { transform: translate(-50%, -50%); }
  .hero .hword.active { transform: translate(-50%, -50%); }
}
