/* OceanVines — Asia's Ocean Education Initiative
   Design system: cinematic, editorial, Asian-inflected
*/

:root {
  /* Palette */
  --abyss: #07111c;            /* page bg */
  --midnight: #0c1a2a;         /* section bg */
  --ink: #0a1420;              /* darkest */
  --tide: #122838;             /* alt section */
  --bone: #f4ede0;             /* primary text on dark */
  --bone-soft: #d8cfbe;
  --jade: #3fa89c;             /* primary accent */
  --jade-deep: #1f6e6a;
  --rust: #c84b31;             /* heritage accent (junk sail) */
  --gold: #c89b4a;             /* sunrise accent */
  --rule: rgba(244, 237, 224, 0.14);
  --rule-strong: rgba(244, 237, 224, 0.28);

  /* Type */
  --font-display: 'Fraunces', 'Noto Serif TC', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-cn: 'Noto Serif TC', 'Songti SC', serif;

  /* Spacing tokens */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 5rem;
  --space-12: 8rem;
  --space-16: 12rem;

  --max: 1320px;
  --max-narrow: 880px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--abyss);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 500;
}
.eyebrow .cn { font-family: var(--font-cn); letter-spacing: 0.12em; margin-left: 0.6em; color: var(--bone-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: clamp(2.6rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0; }

p.lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--bone); max-width: 60ch; font-weight: 300; }

.cn-accent {
  font-family: var(--font-cn);
  font-weight: 300;
  color: var(--bone-soft);
  letter-spacing: 0.04em;
}

/* Container */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.narrow { max-width: var(--max-narrow); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 17, 28, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--rule);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.01em; }
.nav__brand .cn { font-family: var(--font-cn); font-size: 0.9rem; color: var(--bone-soft); margin-left: 0.4rem; opacity: 0.7; }
.nav__brand svg { width: 30px; height: 30px; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); align-items: center; font-size: 0.92rem; }
.nav__links a { opacity: 0.78; }
.nav__links a:hover, .nav__links a.active { opacity: 1; color: var(--jade); }
.nav__cta {
  border: 1px solid var(--rule-strong);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}
.nav__cta:hover { background: var(--jade); border-color: var(--jade); color: var(--ink); }

.nav__toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--bone); position: relative; transition: 0.3s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--bone); transition: 0.3s;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,17,28,0.55) 0%, rgba(7,17,28,0.15) 35%, rgba(7,17,28,0.85) 100%),
    linear-gradient(90deg, rgba(7,17,28,0.55) 0%, rgba(7,17,28,0) 60%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__tag { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 12px var(--jade); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  max-width: 18ch;
  font-weight: 200;
}
.hero h1 em {
  font-style: italic;
  color: var(--bone-soft);
  font-weight: 300;
}
.hero__sub {
  display: flex; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap; align-items: flex-end;
}
.hero__sub p { max-width: 42ch; font-size: 1.05rem; color: var(--bone-soft); }
.hero__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--jade); color: var(--ink);
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font-size: 0.9rem; letter-spacing: 0.04em; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.hero__cta:hover { background: var(--bone); transform: translateY(-2px); }
.hero__cta svg { width: 16px; height: 16px; }

.hero__scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bone-soft); opacity: 0.6;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 2;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 38px; background: var(--bone-soft);
  animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Stats strip */
.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: rgba(12, 26, 42, 0.5);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
.stat__num {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1; color: var(--bone);
  letter-spacing: -0.03em;
}
.stat__num em { font-style: italic; color: var(--jade); }
.stat__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-soft); margin-top: 0.7rem; }

/* Two-column with image */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__visual {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.split__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.split__visual:hover img { transform: scale(1.04); }
.split__visual--landscape { aspect-ratio: 4/3; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { display: inline-block; margin-bottom: 1.2rem; }
.section-head h2 { max-width: 22ch; }

/* Conviction grid */
.conviction { background: var(--midnight); }
.conviction__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.conviction__item {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s var(--ease);
}
.conviction__item:nth-child(2n) { border-right: 0; }
.conviction__item:hover { background: rgba(63, 168, 156, 0.05); }
.conviction__num {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--jade); letter-spacing: 0.2em;
  display: block; margin-bottom: 1.2rem;
}
.conviction__item h3 {
  font-size: 1.5rem; font-weight: 300; line-height: 1.25;
  max-width: 22ch;
}

/* Vessel showcase */
.vessel {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.vessel__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.vessel__name { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 200; line-height: 1; }
.vessel__name em { font-style: italic; color: var(--jade); }
.vessel__meta {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-soft);
}
.vessel__hero {
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.vessel__hero img { width: 100%; height: 100%; object-fit: cover; }
.vessel__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.vessel__body p { font-size: 1.05rem; color: var(--bone-soft); }
.vessel__features { display: grid; gap: 1.2rem; }
.vessel__feature {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.vessel__feature h4 { margin-bottom: 0.4rem; color: var(--bone); }
.vessel__feature p { font-size: 0.92rem; color: var(--bone-soft); }
.specs {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.spec { padding: 1.4rem 1rem 1.4rem 0; border-right: 1px solid var(--rule); }
.spec:last-child { border-right: 0; }
.spec__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--jade); display: block; margin-bottom: 0.6rem; }
.spec__value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; }

/* Programs */
.programs { background: var(--tide); }
.programs__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.program {
  background: var(--midnight);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 320px;
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.program:hover { background: var(--ink); }
.program__num {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--jade); letter-spacing: 0.2em;
  display: flex; justify-content: space-between; align-items: center;
}
.program__num .arrow { transition: transform 0.3s var(--ease); }
.program:hover .program__num .arrow { transform: translateX(6px); }
.program h3 { font-size: 1.6rem; font-weight: 300; line-height: 1.2; }
.program p { font-size: 0.95rem; color: var(--bone-soft); flex: 1; }
.program__link { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--jade); }

/* Routes */
.routes { background: var(--abyss); }
.routes__list { border-top: 1px solid var(--rule); }
.route {
  display: grid; grid-template-columns: 80px 1fr 1.6fr 200px;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  transition: background 0.4s var(--ease);
  cursor: pointer;
}
.route:hover { background: rgba(63, 168, 156, 0.04); }
.route:hover h3 { color: var(--jade); }
.route__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--jade); letter-spacing: 0.18em; }
.route h3 { font-size: 1.5rem; font-weight: 300; transition: color 0.3s var(--ease); }
.route h3 .cn { font-family: var(--font-cn); font-size: 0.85rem; color: var(--bone-soft); margin-left: 0.6em; opacity: 0.65; letter-spacing: 0.04em; }
.route p { font-size: 0.95rem; color: var(--bone-soft); }
.route__meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-soft); text-align: right; }

/* Quote */
.quote { background: var(--ink); padding-block: clamp(5rem, 10vw, 9rem); }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 200; line-height: 1.25;
  font-style: italic;
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
  letter-spacing: -0.01em;
}
.quote blockquote::before { content: '"'; display: block; font-size: 4em; line-height: 0.6; color: var(--jade); margin-bottom: 0.3em; opacity: 0.6; }
.quote cite { display: block; margin-top: 2.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-soft); font-style: normal; text-align: center; }

/* Day aboard timeline */
.day { background: var(--midnight); }
.day__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.day__cell {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.day__cell:last-child { border-right: 0; }
.day__time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--jade); letter-spacing: 0.16em; margin-bottom: 1rem; display: block; }
.day__cell h4 { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; margin-bottom: 0.6rem; }
.day__cell p { font-size: 0.92rem; color: var(--bone-soft); }

/* CTA */
.cta {
  background: var(--ink);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(63, 168, 156, 0.18), transparent 60%),
              radial-gradient(circle at 75% 30%, rgba(200, 75, 49, 0.12), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; margin-bottom: 1.4rem; }
.cta p { max-width: 50ch; margin-inline: auto; color: var(--bone-soft); margin-bottom: 2.5rem; font-size: 1.1rem; }
.cta__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font-size: 0.9rem; letter-spacing: 0.04em; font-weight: 500;
  border: 1px solid var(--rule-strong);
  transition: all 0.3s var(--ease);
}
.btn--primary { background: var(--jade); border-color: var(--jade); color: var(--ink); }
.btn--primary:hover { background: var(--bone); border-color: var(--bone); transform: translateY(-2px); }
.btn--ghost:hover { background: var(--rule); border-color: var(--bone-soft); }

/* Footer */
.footer {
  background: var(--ink); padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 0.8rem; max-width: 36ch; }
.footer__brand .logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.18rem; }
.footer__brand p { color: var(--bone-soft); font-size: 0.95rem; line-height: 1.5; }
.footer h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-soft); margin-bottom: 1.2rem; font-weight: 500; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.footer__col a { color: var(--bone); opacity: 0.78; }
.footer__col a:hover { opacity: 1; color: var(--jade); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-soft);
}

/* Story (about page) */
.story { padding-top: clamp(7rem, 14vw, 11rem); }
.story h1 {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  max-width: 22ch;
  font-weight: 200;
  line-height: 1.05;
}
.story h1 em { font-style: italic; color: var(--jade); }
.story__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  max-width: 60ch;
  color: var(--bone-soft);
  margin-top: 2rem;
  line-height: 1.6;
}

.principles { background: var(--midnight); }
.principles__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.principle { border-top: 1px solid var(--rule); padding-top: 1.4rem; padding-bottom: 1.4rem; }
.principle h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.principle p { color: var(--bone-soft); font-size: 0.96rem; }

.founders { background: var(--ink); }
.founders__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.founder {
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
}
.founder__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--jade); margin-bottom: 0.8rem; }
.founder h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.founder p { color: var(--bone-soft); font-size: 0.95rem; line-height: 1.55; }

/* Editorial image with caption */
.editorial-img {
  margin-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.editorial-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.editorial-img figcaption {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-soft); margin-top: 0.9rem;
}

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(7, 17, 28, 0.96); backdrop-filter: blur(16px);
    padding: 2rem; gap: 1.4rem; align-items: flex-start;
    border-bottom: 1px solid var(--rule);
  }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .split, .vessel__body { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .conviction__grid, .programs__grid, .day__grid { grid-template-columns: 1fr; }
  .conviction__item, .day__cell { border-right: 0; }
  .programs__grid { gap: 1px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.2rem 0; }
  .route { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.4rem 0; }
  .route__meta { text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .principles__list, .founders__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .specs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Selection */
::selection { background: var(--jade); color: var(--ink); }

/* Scrollbar */
html { scrollbar-color: var(--jade-deep) var(--abyss); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--abyss); }
::-webkit-scrollbar-thumb { background: var(--jade-deep); border-radius: 4px; }
