/* Transnational Voyages — marketing one-pager
   Brand tokens mirrored from the product theme. */

:root {
  --primary: #d4a24c;
  --primary-hover: #b8862e;
  --secondary: #111111;
  --ink: #1a1714;
  --ink-soft: #5c564e;
  --paper: #faf8f5;
  --paper-deep: #f0ebe3;
  --line: rgba(17, 17, 17, 0.1);
  --gold-glow: rgba(212, 162, 76, 0.22);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: min(1120px, calc(100% - 3rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 162, 76, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(17, 17, 17, 0.04), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.tone-gold { color: var(--primary); }
.tone-ink { color: var(--ink); }
.tone-paper { color: #fffdf9; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
}

.lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-intro.centered {
  text-align: center;
  margin-inline: auto;
}

.section-intro.centered .lede {
  margin-inline: auto;
}

.section-intro h2,
.atelier-head h2,
.craft-copy h2,
.closing-inner h2 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  max-width: 16ch;
}

.section-intro.centered h2 {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-line {
  border: 1px solid rgba(255, 253, 249, 0.45);
  color: #fffdf9;
  backdrop-filter: blur(8px);
}

.btn-line:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.65);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #e8c47a);
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(1200px, calc(100% - 2rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark,
.brand img {
  width: 2.75rem;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.hero-brand img,
.closing-mark {
  width: 4.25rem;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-word-line {
  white-space: nowrap;
}

.brand-compact {
  font-weight: 700;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle,
.nav-close {
  display: none;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fffdf9;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroDrift 22s var(--ease-out) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(17, 17, 17, 0.2) 35%, rgba(17, 17, 17, 0.78) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.45), transparent 55%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 0 6.5rem;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-brand img {
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.hero-title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 500;
  color: #fffdf9;
}

.hero-lede {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: 1.1rem;
  color: rgba(255, 253, 249, 0.82);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.72);
}

.hero-scroll i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--primary), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.platform {
  background:
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 100%);
}

.promise-rail {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.promise-item {
  padding: 2rem 1.75rem 0 0;
  border-right: 1px solid var(--line);
}

.promise-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.promise-item:not(:first-child) {
  padding-left: 1.75rem;
}

.promise-index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
}

.promise-item h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.promise-item p {
  color: var(--ink-soft);
  max-width: 28ch;
}

/* Craft */
.craft {
  background:
    linear-gradient(135deg, rgba(212, 162, 76, 0.08), transparent 40%),
    var(--paper-deep);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.craft-list {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.35rem;
}

.craft-list li {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--primary);
}

.craft-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.craft-list span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.craft-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0.5rem 1.5rem;
  min-height: 34rem;
  box-shadow: 0 30px 60px -40px rgba(17, 17, 17, 0.45);
}

.craft-visual img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
}

.craft-visual figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.5rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.82));
  color: rgba(255, 253, 249, 0.88);
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}

.craft-visual figcaption .tone-gold {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Journey */
.journey {
  background: #fffdf9;
}

.steps {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
}

.step {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.step:nth-child(even) {
  grid-template-columns: 1.1fr 0.9fr;
}

.step:nth-child(even) .step-media {
  order: 2;
}

.step-media {
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 4 / 3;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.step:hover .step-media img {
  transform: scale(1.05);
}

.step-num {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
}

.step-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.85rem;
}

.step-body p {
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Atelier */
.atelier {
  background:
    radial-gradient(circle at 80% 0%, var(--gold-glow), transparent 40%),
    var(--secondary);
  color: #fffdf9;
  overflow: clip;
}

.atelier .eyebrow {
  color: var(--primary);
}

.atelier .lede {
  color: rgba(255, 253, 249, 0.7);
}

.atelier-head {
  max-width: 42rem;
}

.marquee {
  margin: 3rem 0 2.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  white-space: nowrap;
  color: rgba(255, 253, 249, 0.35);
}

.marquee-track span:nth-child(odd) {
  color: var(--primary);
}

.atelier-stage {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 24rem;
}

.atelier-stage img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.atelier-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.85));
}

.atelier-caption p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  max-width: 22ch;
}

/* Closing */
.closing {
  position: relative;
  min-height: 78svh;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fffdf9;
  overflow: clip;
}

.closing-media {
  position: absolute;
  inset: 0;
}

.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.78));
}

.closing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.closing-mark {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
}

.closing-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.closing-inner h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.closing-inner .lede {
  color: rgba(255, 253, 249, 0.78);
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.hero [data-reveal]:nth-child(2) { transition-delay: 0.18s; }
.hero [data-reveal]:nth-child(3) { transition-delay: 0.3s; }
.hero [data-reveal]:nth-child(4) { transition-delay: 0.42s; }

.promise-item:nth-child(2) { transition-delay: 0.1s; }
.promise-item:nth-child(3) { transition-delay: 0.2s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo,
  .marquee-track,
  .hero-scroll i,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 960px) {
  .promise-rail {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .promise-item,
  .promise-item:not(:first-child) {
    padding: 1.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .promise-item:last-child {
    border-bottom: 0;
  }

  .craft-grid,
  .step,
  .step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .step:nth-child(even) .step-media {
    order: 0;
  }

  .craft-visual,
  .craft-visual img {
    min-height: 22rem;
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(20rem, 86vw);
    height: 100svh;
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: -20px 0 50px rgba(17, 17, 17, 0.12);
    transform: translateX(105%);
    transition: transform 0.45s var(--ease-out);
    z-index: 95;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-toggle,
  .nav-close {
    display: inline-flex;
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-content {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .brand-word {
    font-size: 0.82rem;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    max-width: 11ch;
  }
}
