/* ==========================================================================
   Private Indonesia — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --ivory: #f7f4ee;
  --stone: #ece6d9;
  --sand: #ddd2ba;
  --charcoal: #211f1c;
  --near-black: #14130f;
  --turquoise: #4f8f8a;
  --turquoise-deep: #2f5f5c;
  --ink-on-light: #211f1c;
  --ink-on-dark: #f7f4ee;
  --line-on-light: rgba(33, 31, 28, 0.14);
  --line-on-dark: rgba(247, 244, 238, 0.2);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero: clamp(2.6rem, 3.4vw + 1.8rem, 5.4rem);
  --fs-h2: clamp(2.1rem, 2.2vw + 1.4rem, 3.4rem);
  --fs-lede: clamp(1.15rem, 0.5vw + 1rem, 1.45rem);
  --fs-body: clamp(1rem, 0.2vw + 0.94rem, 1.125rem);
  --fs-label: 0.75rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Spacing */
  --space-2xs: 0.5rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 4.5rem;
  --space-xl: 7rem;
  --space-2xl: 11rem;

  /* Layout */
  --container-max: 1440px;
  --edge: clamp(1.5rem, 5vw, 5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.6s;
  --dur-slow: 1.4s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-on-light);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ivory);
  color: var(--ink-on-light);
  padding: var(--space-xs) var(--space-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: var(--edge);
  top: var(--space-xs);
}

:focus-visible {
  outline: 1px solid var(--turquoise);
  outline-offset: 4px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--edge);
  transition: background var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  padding: var(--space-2xs) var(--edge);
  border-bottom: 1px solid var(--line-on-light);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink-on-dark);
  text-shadow: 0 1px 4px rgba(10, 10, 8, 0.4);
  transition: color var(--dur-fast) var(--ease), text-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled .wordmark { color: var(--ink-on-light); text-shadow: none; }

.primary-nav {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2.5rem);
}

.primary-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  text-shadow: 0 1px 4px rgba(10, 10, 8, 0.4);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), text-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled .primary-nav a { color: var(--ink-on-light); text-shadow: none; }
.primary-nav a:hover { border-color: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  filter: drop-shadow(0 1px 3px rgba(10, 10, 8, 0.4));
  transition: filter var(--dur-fast) var(--ease);
}
.site-header.is-scrolled .nav-toggle { filter: none; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--ink-on-dark);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after {
  background: var(--ink-on-light);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  animation: hero-yacht-position 24s var(--ease) forwards;
}

@keyframes hero-scale {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes hero-yacht-position {
  from { transform: translateX(20%) scale(1.44); }
  to { transform: translateX(20%) scale(1.52); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 10, 8, 0.58) 0%,
      rgba(10, 10, 8, 0.4) 26%,
      rgba(10, 10, 8, 0.22) 50%,
      rgba(10, 10, 8, 0.08) 72%,
      rgba(10, 10, 8, 0) 88%
    ),
    linear-gradient(
      180deg,
      rgba(20, 19, 15, 0.4) 0%,
      rgba(20, 19, 15, 0.06) 22%,
      rgba(20, 19, 15, 0.1) 48%,
      rgba(20, 19, 15, 0.56) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--ink-on-dark);
  max-width: 860px;
  padding: 0 var(--edge) var(--space-2xl);
}

.hero-content .eyebrow {
  opacity: 0.9;
  text-shadow: 0 0 3px rgba(10, 10, 8, 0.65), 0 1px 3px rgba(10, 10, 8, 0.35);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 6px rgba(10, 10, 8, 0.85), 0 0 28px rgba(10, 10, 8, 0.5), 0 2px 8px rgba(10, 10, 8, 0.38), 0 18px 40px rgba(10, 10, 8, 0.3);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-copy p {
  font-size: var(--fs-lede);
  font-weight: 300;
  line-height: var(--lh-snug);
  max-width: 640px;
  text-shadow: 0 0 3px rgba(10, 10, 8, 0.65), 0 0 16px rgba(10, 10, 8, 0.35), 0 1px 4px rgba(10, 10, 8, 0.4), 0 10px 26px rgba(10, 10, 8, 0.26);
}

.hero-content .hero-links {
  justify-content: flex-start;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-content .hero-links a {
  text-shadow: 0 1px 4px rgba(10, 10, 8, 0.4);
}

.hero-horizon {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: var(--space-lg);
  height: 1px;
  background: rgba(247, 244, 238, 0.35);
  z-index: 1;
}

/* ==========================================================================
   Brand Statement
   ========================================================================== */

.statement {
  padding: clamp(5rem, 10vw, 8.5rem) var(--edge);
  background: var(--ivory);
}

.statement-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.statement-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw + 1.2rem, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 1100px;
  color: var(--ink-on-light);
}

.statement-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-lede);
  line-height: var(--lh-snug);
  max-width: 640px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--charcoal);
}

.statement-close {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 900px;
  color: var(--ink-on-light);
}

/* ==========================================================================
   Bespoke Experiences
   ========================================================================== */

.bespoke {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--near-black);
  color: var(--ink-on-dark);
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--edge);
}

.bespoke-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bespoke-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  animation: hero-scale 26s var(--ease) forwards;
}

.bespoke-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 8, 0.56) 0%,
    rgba(10, 10, 8, 0.3) 30%,
    rgba(10, 10, 8, 0.32) 62%,
    rgba(10, 10, 8, 0.58) 100%
  );
}

.bespoke-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.bespoke-intro {
  max-width: 42ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.bespoke-intro .section-title {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.9rem, 1.8vw + 1.3rem, 3rem);
  text-shadow: 0 0 3px rgba(10, 10, 8, 0.75), 0 0 18px rgba(10, 10, 8, 0.4), 0 2px 10px rgba(10, 10, 8, 0.3);
}

.lede {
  font-size: var(--fs-lede);
  font-weight: 300;
  color: var(--ink-on-dark);
  text-shadow: 0 0 3px rgba(10, 10, 8, 0.65), 0 0 14px rgba(10, 10, 8, 0.35), 0 1px 6px rgba(10, 10, 8, 0.28);
}

.statement-list li {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.5vw + 0.9rem, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: clamp(1rem, 1.6vw, 1.6rem) 0;
  text-shadow: 0 0 3px rgba(10, 10, 8, 0.75), 0 0 18px rgba(10, 10, 8, 0.4), 0 2px 10px rgba(10, 10, 8, 0.3);
}

/* ==========================================================================
   Possible Elements
   ========================================================================== */

.elements {
  background: var(--stone);
  padding: var(--space-2xl) var(--edge);
}

.elements-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.elements-image img {
  width: 100%;
  height: clamp(420px, 60vh, 720px);
  object-fit: cover;
}

.elements-text .section-title { margin-bottom: var(--space-lg); }

.elements-list {
  columns: 2;
  column-gap: clamp(2rem, 4vw, 4rem);
}

.elements-list li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-on-light);
  break-inside: avoid;
}
.elements-list li:last-child { border-bottom: 1px solid var(--line-on-light); }

/* ==========================================================================
   Anywhere in Indonesia
   ========================================================================== */

.anywhere {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--near-black);
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

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

.anywhere-primary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: hero-scale 26s var(--ease) forwards;
}

.anywhere-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 55% at 50% 48%, rgba(13, 13, 10, 0.45) 0%, rgba(13, 13, 10, 0) 70%),
    linear-gradient(180deg, rgba(20, 19, 15, 0.18) 0%, rgba(20, 19, 15, 0.08) 40%, rgba(20, 19, 15, 0.28) 100%);
}

.anywhere-content {
  position: relative;
  z-index: 1;
  color: var(--ink-on-dark);
  padding: var(--edge);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.anywhere-content .section-title {
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.anywhere-copy {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 2.1rem);
  line-height: var(--lh-snug);
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how {
  padding: var(--space-2xl) var(--edge);
  text-align: center;
  background: var(--ivory);
}

.how .section-title { margin-bottom: var(--space-lg); }

.how-copy {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.9rem);
  line-height: var(--lh-snug);
  max-width: 46ch;
  margin: 0 auto;
}

.how-copy-line {
  display: block;
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
}

.how-copy-emphasis {
  font-weight: 700;
  font-style: italic;
}

/* ==========================================================================
   Private Inquiry
   ========================================================================== */

.inquiry {
  background: var(--near-black);
  color: var(--ink-on-dark);
  padding: var(--space-2xl) var(--edge);
  text-align: center;
}

.inquiry .section-title { margin-bottom: var(--space-md); }

.inquiry-copy {
  font-size: var(--fs-lede);
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

.inquiry-links {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
}

.inquiry-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-on-dark);
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.inquiry-links a:hover { border-color: var(--turquoise); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--near-black);
  color: var(--ink-on-dark);
  padding: var(--space-lg) var(--edge) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  border-top: 1px solid var(--line-on-dark);
}

.wordmark--footer { font-size: 1rem; opacity: 0.85; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity var(--dur-fast) var(--ease);
}
.footer-nav a:hover { opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .elements-grid {
    grid-template-columns: 1fr;
  }
  .elements-image { order: -1; }
  .elements-image img { height: 46vh; }
}

@media (max-width: 780px) {
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--near-black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--dur-fast) var(--ease);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { color: var(--ink-on-dark); font-size: 0.95rem; }

  .nav-toggle { display: block; z-index: 101; }

  .hero-content { padding-bottom: var(--space-xl); }
  .hero-horizon { bottom: var(--space-md); }

  .hero-scrim {
    background:
      linear-gradient(
        to right,
        rgba(10, 10, 8, 0.6) 0%,
        rgba(10, 10, 8, 0.42) 45%,
        rgba(10, 10, 8, 0.2) 72%,
        rgba(10, 10, 8, 0.06) 100%
      ),
      linear-gradient(
        180deg,
        rgba(20, 19, 15, 0.42) 0%,
        rgba(20, 19, 15, 0.08) 20%,
        rgba(20, 19, 15, 0.16) 46%,
        rgba(20, 19, 15, 0.6) 100%
      );
  }

  .elements, .how, .inquiry { padding: var(--space-xl) var(--edge); }

  .elements-list { columns: 1; }

  .statement-list li { font-size: clamp(1.3rem, 5vw, 1.7rem); padding: 1rem 0; }
  .bespoke-intro { max-width: none; margin-bottom: 2rem; }

  .bespoke {
    min-height: 0;
    padding: var(--space-xl) var(--edge);
  }
  .bespoke-img { object-position: 55% 15%; }
  .bespoke-scrim {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 8, 0.6) 0%,
      rgba(10, 10, 8, 0.4) 30%,
      rgba(10, 10, 8, 0.42) 62%,
      rgba(10, 10, 8, 0.64) 100%
    );
  }

  .statement { padding: var(--space-xl) var(--edge); }
  .statement-lead { max-width: none; font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .statement-body {
    max-width: none;
    margin-top: 2rem;
  }
  .statement-close {
    max-width: none;
    margin-top: 2.5rem;
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .anywhere { min-height: 78vh; }
  .anywhere-primary { object-position: 55% 32%; }

  .inquiry-links { gap: 1.5rem 2rem; }

  .site-footer { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  :root { --space-2xl: 6rem; --space-xl: 4.5rem; }
  .hero-copy p br { display: none; }
  .hero-copy p { font-size: 1.05rem; }
}
