/* ============================================================
   605 Marine Co — Landing page base
   Shell, header, hero (3 directions), waves, footer, utilities
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  --accent: var(--harbour-700);
  --accent-soft: var(--harbour-300);
}
body[data-accent="brass"] {
  --accent: var(--brass-600);
  --accent-soft: var(--brass-200);
}
img { display: block; }
::selection { background: var(--navy-800); color: var(--ivory-50); }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* Tracked-caps label + leading rule — the signature brand move */
.eyebrow-rule {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-rule::before { content: ""; width: 46px; height: 1px; background: currentColor; opacity: .85; }
.eyebrow-rule.center { justify-content: center; }
.eyebrow-rule.center::after { content: ""; width: 46px; height: 1px; background: currentColor; opacity: .85; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-sail), transform .9s var(--ease-sail); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HEADER — sticky, condenses on scroll
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .4s var(--ease-sail), box-shadow .4s var(--ease-sail), backdrop-filter .4s;
}
.site-header.on-photo { color: #fff; }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 26px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  transition: padding .4s var(--ease-sail);
}
.site-header.scrolled { background: rgba(251,248,241,0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--stone-200); color: var(--navy-900); }
.site-header.scrolled .header-inner { padding-top: 14px; padding-bottom: 14px; }
.site-header.scrolled .brand-sub { opacity: 0; transform: translateY(-4px); }

.nav-group { display: flex; gap: 30px; align-items: center; }
.nav-group.right { justify-content: flex-end; gap: 18px; }
.nav-item {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: inherit; text-decoration: none; cursor: pointer;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-item::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: currentColor;
  transition: width .3s var(--ease-standard);
}
.nav-item:hover::after { width: 100%; }

.nav-portal-link {
  margin-left: 2px;
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: rgba(251, 248, 241, 0.08);
  letter-spacing: 0.14em;
}
.nav-portal-link::after { display: none; }
.nav-portal-link:hover { background: rgba(251, 248, 241, 0.16); }
.site-header.scrolled .nav-portal-link {
  border-color: rgba(26, 39, 64, 0.22);
  background: rgba(255, 255, 255, 0.46);
  color: var(--navy-900);
}
.site-header.scrolled .nav-portal-link:hover {
  border-color: var(--harbour-700);
  color: var(--harbour-700);
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: inherit; cursor: pointer; }
.brand-anchor { width: 22px; height: 27px; transition: transform .5s var(--ease-sail); }
.brand:hover .brand-anchor { transform: translateY(-2px); }
.brand-anchor svg { width: 100%; height: 100%; display: block; }
.brand-anchor svg * { stroke: currentColor; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.22em; line-height: 1; }
.brand-sub {
  display: flex; align-items: center; gap: 9px; width: 220px; max-width: 36vw;
  transition: opacity .35s, transform .35s;
}
.brand-sub span.l { flex: 1; height: 1px; background: currentColor; opacity: .4; }
.brand-sub .t { font-size: 8.5px; letter-spacing: 0.32em; text-transform: uppercase; opacity: .7; white-space: nowrap; }

.brand-logo-link {
  position: relative;
  width: 182px;
  height: 63px;
  display: block;
}
.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .35s var(--ease-sail);
}
.brand-logo-dark { opacity: 0; }
.brand-logo-light { opacity: 1; }
.site-header.scrolled .brand-logo-dark { opacity: 1; }
.site-header.scrolled .brand-logo-light { opacity: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 15px 30px; border-radius: 4px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: all .25s var(--ease-standard);
  white-space: nowrap;
}
.btn-primary { background: var(--navy-800); color: var(--ivory-50); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-primary:active { background: var(--navy-900); transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-600); }
.btn-ghost:hover { background: var(--navy-800); color: var(--ivory-50); border-color: var(--navy-800); }
.btn-on-photo { background: rgba(251,248,241,0.95); color: var(--navy-900); }
.btn-on-photo:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost-photo { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-photo:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 11px; }

/* ============================================================
   ANIMATED WAVES (layered SVG, seamless horizontal drift)
   ============================================================ */
.waves { position: absolute; left: 0; right: 0; width: 100%; pointer-events: none; line-height: 0; }
.waves svg { display: block; width: 200%; height: 100%; }
.wave-path { animation: wave-drift linear infinite; transform-origin: center; }
.wave-1 { animation-duration: 19s; }
.wave-2 { animation-duration: 27s; animation-direction: reverse; }
.wave-3 { animation-duration: 36s; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wave-path { animation: none; } }

/* ============================================================
   HERO — shared
   ============================================================ */
.hero { position: relative; }
.hero-variant { display: none; }
body[data-direction="open-water"]    #hero-open    { display: block; }
body[data-direction="ivory-calm"]    #hero-ivory   { display: block; }
body[data-direction="editorial-split"] #hero-split { display: block; }

.hero-kicker { margin-bottom: 26px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.012em; margin: 0;
}
.hero-lede {
  font-family: var(--font-serif); font-style: italic; line-height: 1.5; margin: 22px 0 0;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }

/* Animated entrance for hero content */
.hero-anim > * { opacity: 0; transform: translateY(20px); animation: hero-rise 1s var(--ease-sail) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .15s; }
.hero-anim > *:nth-child(2) { animation-delay: .32s; }
.hero-anim > *:nth-child(3) { animation-delay: .49s; }
.hero-anim > *:nth-child(4) { animation-delay: .66s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-anim > * { opacity: 1 !important; transform: none !important; animation: none; } }
@media print { .hero-anim > *, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---- Direction 1: OPEN WATER (full-bleed cinematic photo) ---- */
#hero-open { height: 100vh; min-height: 660px; max-height: 1000px; overflow: hidden; }
#hero-open .hero-photo, #hero-open .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: slow-zoom 18s var(--ease-sail) forwards; }
#hero-open .hero-video { opacity: 0; transition: opacity .8s var(--ease-sail); z-index: 1; pointer-events: none; }
#hero-open .hero-video.is-ready { opacity: 1; }
@keyframes slow-zoom { to { transform: scale(1); } }
#hero-open .hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(26,39,64,0.55) 0%, rgba(26,39,64,0.22) 34%, rgba(26,39,64,0.40) 70%, rgba(26,39,64,0.80) 100%); z-index: 2; }
#hero-open .hero-content { position: relative; z-index: 3; height: 100%; max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 100px 40px 0; text-shadow: 0 2px 28px rgba(12,18,32,0.34); }
#hero-open .hero-title { font-size: clamp(52px, 7.4vw, 104px); color: #fff; }
#hero-open .hero-lede { color: rgba(255,255,255,.92); max-width: 540px; font-size: 22px; }
#hero-open .eyebrow-rule { color: #fff; }
#hero-open .waves { bottom: -1px; height: 130px; color: var(--ivory-50); z-index: 2; }
#hero-open .scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; color: #fff;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .85; }
.scroll-cue .line { width: 1px; height: 38px; background: currentColor; animation: cue 2.4s var(--ease-sail) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4;} 50%{ transform: scaleY(1); opacity:1;} }

/* ---- Direction 2: IVORY CALM (typographic + SVG wave graphic) ---- */
#hero-ivory { background: var(--ivory-50); padding: 200px 0 0; text-align: center; overflow: hidden; }
#hero-ivory .hero-content { max-width: 900px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 3; }
#hero-ivory .hero-title { font-size: clamp(48px, 6.6vw, 96px); color: var(--navy-900); }
#hero-ivory .hero-title .em { font-style: italic; font-weight: 500; color: var(--accent); }
#hero-ivory .hero-lede { color: var(--stone-600); max-width: 560px; margin-left: auto; margin-right: auto; font-size: 21px; }
#hero-ivory .hero-ctas { justify-content: center; }
#hero-ivory .hero-stage { position: relative; height: 280px; margin-top: 30px; }
#hero-ivory .waves { bottom: 0; height: 260px; color: var(--harbour-500); }
#hero-ivory .hero-boat { position: absolute; bottom: 86px; left: 50%; width: 132px; z-index: 4;
  filter: drop-shadow(0 14px 22px rgba(26,39,64,.22)); animation: boat-bob 6s var(--ease-sail) infinite; }
@keyframes boat-bob { 0%,100%{ transform: translate(-50%, 0) rotate(-1.2deg);} 50%{ transform: translate(-50%, -10px) rotate(1.2deg);} }

/* ---- Direction 3: EDITORIAL SPLIT ---- */
#hero-split { background: var(--ivory-50); padding-top: 112px; }
#hero-split .split { display: grid; grid-template-columns: 1.04fr 0.96fr; min-height: calc(100vh - 112px); }
#hero-split .split-text { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(40px, 5vw, 96px) 80px; max-width: 720px; }
#hero-split .hero-title { font-size: clamp(46px, 4.6vw, 78px); color: var(--navy-900); }
#hero-split .hero-lede { color: var(--stone-600); max-width: 460px; font-size: 20px; }
#hero-split .split-media { position: relative; overflow: hidden; background: var(--navy-900); }
#hero-split .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: slow-zoom 20s var(--ease-sail) forwards; }
#hero-split .split-media .waves { bottom: -1px; height: 90px; color: var(--ivory-50); }
#hero-split .split-tag { position: absolute; left: 32px; bottom: 36px; z-index: 3; color: #fff;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
#hero-split .split-tag::before { content: ""; width: 34px; height: 1px; background: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: var(--ivory-50); padding: 84px 0 30px; position: relative; }
.site-footer .waves { top: -1px; height: 60px; color: var(--navy-900); transform: rotate(180deg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; align-items: start; }
.footer-word { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.18em; }
.footer-tag { color: var(--fg-on-dark-muted); font-size: 14px; margin-top: 14px; max-width: 240px; line-height: 1.6; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--harbour-300); margin: 0 0 18px; font-weight: 600; }
.footer-col a { display: block; color: var(--ivory-50); text-decoration: none; font-size: 14.5px; padding: 7px 0; opacity: .85; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--harbour-300); }
.footer-news p { color: var(--fg-on-dark-muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.footer-sub { display: flex; border-bottom: 1px solid rgba(255,255,255,.34); }
.footer-sub input { flex: 1; background: transparent; border: 0; color: #fff; padding: 11px 0; font-family: var(--font-body); font-size: 15px; outline: none; }
.footer-sub input::placeholder { color: rgba(255,255,255,.5); }
.footer-sub button { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 0 6px; font-size: 20px; transition: transform .2s; }
.footer-sub button:hover { transform: translateX(3px); }
.footer-legal { max-width: 1280px; margin: 56px auto 0; padding: 22px 40px 0; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--fg-on-dark-muted); }

.client-portal-strip {
  background: var(--ivory-50);
  border-top: 1px solid var(--stone-200);
  padding: 58px 0;
}
.client-portal-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.client-portal-strip h2 {
  margin: 14px 0 0;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}
.client-portal-strip p {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--stone-600);
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
#tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 200; width: 264px;
  background: #fff; color: var(--navy-900); border: 1px solid var(--stone-200); border-radius: 8px;
  box-shadow: var(--shadow-lg); font-family: var(--font-body); padding: 18px 18px 16px; display: none; }
#tweaks.open { display: block; }
#tweaks h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--navy-800); }
#tweaks .tw-sub { font-size: 11.5px; color: var(--stone-600); margin: 0 0 14px; }
.tw-group { margin-top: 16px; }
.tw-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-600); margin-bottom: 8px; }
.tw-seg { display: flex; flex-direction: column; gap: 6px; }
.tw-seg.row { flex-direction: row; }
.tw-opt { flex: 1; text-align: center; font-size: 12px; padding: 9px 10px; border: 1px solid var(--stone-200);
  border-radius: 4px; cursor: pointer; background: var(--ivory-50); color: var(--navy-800); transition: all .18s; user-select: none; }
.tw-opt:hover { border-color: var(--navy-600); }
.tw-opt.active { background: var(--navy-800); color: var(--ivory-50); border-color: var(--navy-800); }
.tw-swatches { display: flex; gap: 8px; }
.tw-sw { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tw-sw.active { border-color: var(--navy-800); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .nav-group.left { gap: 22px; }
  .nav-group.right { gap: 12px; }
  .nav-group.right .nav-item:not(.is-cta):not(.is-portal) { display: none; }
  .header-inner { gap: 16px; }
}
@media (max-width: 920px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .header-inner { grid-template-columns: auto 1fr; padding: 18px 24px; }
  .nav-group.left { display: none; }
  .nav-group.right { gap: 16px; }
  .brand { align-items: flex-start; }
  .brand-sub { display: none; }
  #hero-split .split { grid-template-columns: 1fr; }
  #hero-split .split-media { min-height: 56vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .client-portal-strip-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .nav-group.right { gap: 8px; }
  .nav-group.right .is-cta { display: none; }
  .nav-portal-link { padding: 9px 11px; font-size: 10.5px; letter-spacing: 0.1em; }
  .client-portal-strip { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  #hero-open .hero-content { padding-top: 90px; }
}
