/* Fathom & Fury: brass on oak under storm light.
   Concept spine: the log (mono/manifest), the sea (ink parallax), the brass (engraved type). */

:root {
  --ink: #0c1117;
  --ink-raised: #121a23;
  --ink-line: #22303c;
  --parchment: #e9dfc9;
  --parchment-deep: #d9cba9;
  --parchment-line: #b8a67e;
  --brass: #c9a45c;
  --brass-bright: #e0bf7a;
  --oxblood: #5e1512;
  --oxblood-bright: #7d1f1a;
  --steel: #8fa0ac;
  --text: #dfe6ea;
  --text-dim: #9fb0bc;
  --ink-on-parchment: #241d12;
  --dim-on-parchment: #5c5138;
  --display: 'Anton', sans-serif;
  --engraved: 'Cinzel', serif;
  --body: 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--ink); }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* film grain sits above everything, touches nothing */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- shared type ---------- */

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }

.label {
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
}

.h-display {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 400;
}

.h-giant {
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 176px);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 400;
}

.section-sub { color: var(--text-dim); max-width: 52ch; }

.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  will-change: transform;
  background: none;
}

.btn:active { transform: scale(0.97); }

.btn-brass { background: var(--brass); color: var(--ink); font-weight: 500; }
.btn-brass:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

.btn-ghost { color: var(--brass); }
.btn-ghost:hover { background: rgba(201, 164, 92, 0.12); }

.btn-dead {
  border-color: var(--ink-line);
  color: var(--steel);
  cursor: not-allowed;
}

.btn-wide { width: 100%; text-align: center; }

.link-draw {
  color: var(--brass);
  text-decoration: none;
  position: relative;
  font-weight: 600;
}
.link-draw::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.link-draw:hover::after { transform: scaleX(1); transform-origin: left; }

.chip {
  display: inline-block;
  border: 1px solid var(--ink-line);
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chip-dead { border-style: dashed; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(rgba(12, 17, 23, 0.92), rgba(12, 17, 23, 0.75) 70%, transparent);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
.nav.is-scrolled { background: rgba(12, 17, 23, 0.95); border-bottom: 1px solid var(--ink-line); }
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-mark { width: 42px; height: auto; }
.nav-wordmark {
  font-family: var(--engraved);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment);
}
.nav-wordmark em { font-style: normal; color: var(--brass); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.nav-link:hover, .nav-link.is-active { color: var(--parchment); }
.nav-link.is-active::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 18px; height: 2px; background: var(--brass);
}
.nav-cta { padding: 10px 18px; }

.nav-progress {
  height: 2px;
  background: transparent;
}
.nav-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-burger {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 102;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--parchment);
  margin: 7px auto;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
  visibility: hidden;
}
.nav-overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.ovl-link {
  font-family: var(--display);
  font-size: clamp(44px, 10vw, 96px);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(30px);
  transition: color 0.25s;
}
.nav-overlay.is-open .ovl-link { animation: ovl-in 0.55s var(--ease-out) forwards; }
.nav-overlay.is-open .ovl-link:nth-child(2) { animation-delay: 0.07s; }
.nav-overlay.is-open .ovl-link:nth-child(3) { animation-delay: 0.14s; }
.nav-overlay.is-open .ovl-link:nth-child(4) { animation-delay: 0.21s; }
@keyframes ovl-in { to { opacity: 1; transform: translateY(0); } }
.ovl-link:hover { color: var(--brass); }
.ovl-num { font-family: var(--mono); font-size: 13px; color: var(--brass); letter-spacing: 0.14em; }
.ovl-foot { position: absolute; bottom: 28px; color: var(--steel); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 115%;
  object-fit: cover;
  will-change: transform;
  transform-origin: center;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(12,17,23,0.55), rgba(12,17,23,0.35) 45%, var(--ink) 96%),
    radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(12,17,23,0.6) 100%);
}

.hero-smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  max-width: 1100px;
}

.hero-kicker { color: var(--brass); margin-bottom: 26px; }

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(72px, 13.5vw, 200px);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--parchment);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  margin: 34px auto 0;
  max-width: 54ch;
  color: var(--text);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-fathom {
  position: absolute;
  bottom: 30px; left: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--steel);
}
.fathom-rope {
  display: block;
  width: 1px; height: 74px;
  background: var(--ink-line);
  position: relative;
  overflow: hidden;
}
.fathom-rope i {
  position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--brass);
  animation: sound 2.2s var(--ease-out) infinite;
}
@keyframes sound {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
  padding: 20px 0;
  background: var(--ink-raised);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  font-family: var(--engraved);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

/* ---------- parchment sections ---------- */

.section-parchment {
  background: var(--parchment);
  color: var(--ink-on-parchment);
}
.section-parchment .label { color: #8a6a2c; }

/* ---------- manifesto ---------- */

.manifesto { padding: clamp(80px, 12vh, 160px) var(--gutter); }

.manifesto-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}

.manifesto-line {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.12;
  text-transform: uppercase;
  color: rgba(36, 29, 18, 0.18);
  margin-bottom: 0.55em;
}

.manifesto-fig img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--parchment-line);
  padding: 10px;
  background: var(--parchment-deep);
}
.manifesto-fig figcaption { margin-top: 12px; color: var(--dim-on-parchment); }

/* ---------- log strip ---------- */

.logstrip { border-bottom: 1px solid var(--ink-line); }
.logstrip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1500px;
  margin: 0 auto;
}
.logstat {
  padding: clamp(36px, 5vw, 64px) 24px;
  border-left: 1px solid var(--ink-line);
  text-align: left;
}
.logstat:first-child { border-left: none; }
.logstat-num {
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 88px);
  color: var(--parchment);
  display: block;
  line-height: 1;
}
.logstat-num .count { color: var(--brass); }
.logstat-label { display: block; margin-top: 12px; color: var(--steel); }

/* ---------- manifest (blends teaser) ---------- */

.manifest { padding: clamp(90px, 14vh, 180px) var(--gutter); }

.section-head { max-width: 1500px; margin: 0 auto clamp(48px, 7vh, 90px); }
.section-head .section-sub { margin-top: 18px; }

.manifest-list { max-width: 1500px; margin: 0 auto; border-top: 1px solid var(--ink-line); }

.manifest-row {
  display: grid;
  grid-template-columns: 80px 220px 1fr 60px;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  position: relative;
  transition: background 0.3s;
}
.manifest-row:hover { background: rgba(201, 164, 92, 0.05); }

.manifest-index { color: var(--steel); font-size: 14px; }

.manifest-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.manifest-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.manifest-row:hover .manifest-media img { transform: scale(1.06); }

.manifest-line-tag { color: var(--brass); margin-bottom: 8px; }
.manifest-name {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 58px);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1;
}
.manifest-blurb { color: var(--text-dim); margin-top: 10px; max-width: 60ch; }

.manifest-go {
  font-size: 30px;
  color: var(--brass);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.manifest-row:hover .manifest-go { transform: translateX(0); opacity: 1; }

/* ---------- voyage (signature) ---------- */

.voyage { position: relative; }
.voyage-pin {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.voyage-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.voyage-shade {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(12,17,23,0.72), rgba(12,17,23,0.25) 35%, rgba(12,17,23,0.25) 75%, rgba(12,17,23,0.8));
}
.voyage-route { position: absolute; inset: 0; width: 100%; height: 100%; }

.voyage-pin-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.voyage-pin-dot .dot {
  display: block;
  width: 10px; height: 10px;
  background: var(--oxblood);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(94, 21, 18, 0.3);
  opacity: 0;
  transform: scale(0);
}
.voyage-tip {
  position: absolute;
  left: 14px; top: -8px;
  background: rgba(12, 17, 23, 0.88);
  border: 1px solid var(--ink-line);
  padding: 6px 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.voyage-tip .mono { color: var(--brass); font-size: 10px; }
.voyage-tip em { font-style: normal; font-size: 12px; color: var(--text-dim); }

.voyage-head {
  position: absolute;
  top: clamp(80px, 12vh, 140px);
  left: var(--gutter);
  z-index: 4;
  max-width: 560px;
}
.voyage-head .h-display { color: var(--parchment); text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.voyage-sub { margin-top: 16px; color: var(--text); text-shadow: 0 2px 14px rgba(0,0,0,0.8); }

.voyage-end {
  position: absolute;
  bottom: clamp(50px, 9vh, 90px);
  right: var(--gutter);
  z-index: 4;
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- press ---------- */

.press { padding: clamp(80px, 12vh, 150px) var(--gutter); overflow: hidden; }
.press-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.press-num {
  font-family: var(--display);
  font-size: clamp(140px, 24vw, 380px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px #8a6a2c;
}
.press-quote p {
  font-family: var(--engraved);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.25;
}
.press-quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--dim-on-parchment); }

/* ---------- bamf home ---------- */

.bamf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  padding: clamp(90px, 14vh, 180px) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.bamf-media img { border: 1px solid var(--ink-line); }
.bamf-copy .h-display { margin-bottom: 24px; color: var(--parchment); }
.bamf-body { color: var(--text-dim); margin-bottom: 26px; max-width: 58ch; }

/* ---------- find ---------- */

.find { padding: clamp(90px, 14vh, 180px) var(--gutter); background: var(--ink-raised); border-top: 1px solid var(--ink-line); }
.find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  max-width: 1500px;
  margin: 0 auto;
}
.find-card {
  background: var(--ink);
  padding: clamp(28px, 3.4vw, 48px);
  text-decoration: none;
  transition: background 0.3s;
}
.find-card:hover { background: #0f161e; }
.find-logo {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--ink-line);
  filter: grayscale(0.35);
  transition: filter 0.3s;
}
.find-card:hover .find-logo { filter: grayscale(0); }
.find-logo img { width: 100%; height: 100%; object-fit: cover; }
.find-card h3 {
  font-family: var(--engraved);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--parchment);
}
.find-card .mono { color: var(--steel); display: block; line-height: 1.8; }
.find-phone { color: var(--brass) !important; margin-top: 6px; }
.find-note { max-width: 1500px; margin: 28px auto 0; color: var(--text-dim); }
.find-compact { background: var(--ink); }

/* ---------- cta / newsletter ---------- */

.cta {
  position: relative;
  padding: clamp(110px, 18vh, 220px) var(--gutter);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(201, 164, 92, 0.13), transparent 55%),
    var(--ink);
}
.cta-title {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 140px);
  text-transform: uppercase;
  color: var(--parchment);
  line-height: 0.95;
}
.cta-sub { margin: 24px auto 0; max-width: 46ch; color: var(--text-dim); }

.newsletter {
  margin: 40px auto 0;
  display: flex;
  max-width: 520px;
  border: 1px solid var(--ink-line);
}
.newsletter input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.newsletter input[type="email"]:focus { outline: none; background: rgba(201, 164, 92, 0.06); }
.newsletter .btn { border: none; }
.newsletter-msg { margin-top: 16px; color: var(--brass); min-height: 18px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--ink-line); background: var(--ink); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 120px);
  padding: clamp(60px, 9vh, 110px) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.footer-logo { width: min(240px, 60%); }
.footer-tag { margin-top: 18px; color: var(--text-dim); }
.footer-coords { margin-top: 10px; color: var(--steel); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-head {
  font-family: var(--engraved);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 15px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--parchment); }

.footer-bar {
  border-top: 1px solid var(--ink-line);
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  justify-content: space-between;
  color: var(--steel);
  font-size: 13px;
}
.footer-locker {
  color: var(--steel);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.25s, color 0.25s;
}
.footer-locker:hover { opacity: 1; color: var(--brass); }

/* ---------- cigars page ---------- */

.cig-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  padding: clamp(140px, 20vh, 220px) var(--gutter) clamp(60px, 9vh, 110px);
  max-width: 1500px;
  margin: 0 auto;
}
.cig-hero-sub { margin-top: 30px; max-width: 46ch; color: var(--text-dim); }
.cig-hero-fig img { border: 1px solid var(--ink-line); }
.cig-hero-fig figcaption { margin-top: 12px; color: var(--steel); }

.dossier {
  border-top: 1px solid var(--ink-line);
  padding: clamp(70px, 10vh, 130px) var(--gutter);
}
.dossier-limited {
  background:
    repeating-linear-gradient(-45deg, transparent 0 40px, rgba(201, 164, 92, 0.03) 40px 42px),
    var(--ink-raised);
}

.dossier-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  max-width: 1500px;
  margin: 0 auto clamp(40px, 6vh, 70px);
}
.dossier-index {
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 130px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-line);
  line-height: 0.85;
}
.dossier-name {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 100px);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--parchment);
  line-height: 0.95;
}
.dossier-rating {
  margin-left: auto;
  text-align: center;
  border: 1px solid var(--brass);
  padding: 14px 20px;
}
.dossier-rating b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  color: var(--brass);
  line-height: 1;
}
.dossier-rating .mono { color: var(--steel); font-size: 10px; }

.dossier-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.9fr;
  gap: clamp(30px, 4vw, 70px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.dossier-flip .dossier-grid { grid-template-columns: 0.9fr 1.3fr 1.1fr; }
.dossier-flip .dossier-media { order: 3; }
.dossier-flip .dossier-rail { order: 1; }
.dossier-flip .dossier-copy { order: 2; }

.dossier-media img { border: 1px solid var(--ink-line); }
.dossier-copy p { color: var(--text-dim); margin-bottom: 1.2em; max-width: 62ch; }
.dossier-copy p:first-of-type { color: var(--text); font-size: 19px; }
.dossier-actions { margin-top: 30px; }

.dossier-rail {
  position: sticky;
  top: 110px;
  border: 1px solid var(--ink-line);
  padding: 26px;
  background: rgba(18, 26, 35, 0.55);
}
.rail-head { color: var(--brass); margin: 26px 0 14px; }
.rail-head:first-child { margin-top: 0; }
.rail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--ink-line);
}
.rail-list dt { color: var(--steel); }
.rail-list dd { color: var(--text); text-align: right; }

.flavor-list { list-style: none; }
.flavor-list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.flavor-name { color: var(--steel); font-size: 10px; }
.flavor-bar {
  display: block;
  height: 4px;
  background: var(--ink-line);
  position: relative;
  overflow: hidden;
}
.flavor-bar i {
  position: absolute; inset: 0;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
}
.rail-origins { margin-top: 4px; }

/* ---------- about page ---------- */

.about-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--gutter) clamp(60px, 10vh, 120px);
}
.about-hero-fig { position: absolute; inset: 0; }
.about-hero-fig img {
  width: 100%; height: 115%;
  object-fit: cover;
  object-position: 65% 30%;
  will-change: transform;
}
.about-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,17,23,0.82) 20%, rgba(12,17,23,0.35) 60%), linear-gradient(transparent 55%, var(--ink));
}
.about-hero-copy { position: relative; z-index: 2; }
.about-hero .h-giant { font-size: clamp(44px, 7.5vw, 112px); }

.mission { padding: clamp(80px, 12vh, 150px) var(--gutter); }
.mission-grid { max-width: 1200px; margin: 0 auto; }
.mission-text {
  font-family: var(--engraved);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.35;
}

.story { padding: clamp(90px, 13vh, 170px) var(--gutter); }
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 60px 1fr;
  gap: clamp(20px, 3vw, 50px);
  max-width: 1400px;
  margin: 0 auto;
}
.story-p { color: var(--text-dim); margin-bottom: 1.4em; max-width: 58ch; font-size: 18px; }
.story-p:first-of-type { color: var(--text); font-size: 21px; }

.story-rope { position: relative; }
.story-rope::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--ink-line);
}
.story-rope span {
  position: absolute; left: 50%; top: 0;
  width: 3px; margin-left: -1px;
  background: var(--brass);
  height: 0%;
}

.timeline { list-style: none; }
.timeline-item { position: relative; padding: 0 0 46px 34px; }
.timeline-knot {
  position: absolute; left: 0; top: 7px;
  width: 11px; height: 11px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: var(--ink);
}
.timeline-year { color: var(--brass); }
.timeline-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 26px;
  margin: 8px 0;
  color: var(--parchment);
}
.timeline-body { color: var(--text-dim); font-size: 15px; }

.crew { padding: clamp(90px, 13vh, 170px) var(--gutter); background: var(--ink-raised); border-top: 1px solid var(--ink-line); }
.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 50px);
  max-width: 1500px;
  margin: 0 auto;
}
.crew-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  margin-bottom: 22px;
}
.crew-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s, transform 0.7s var(--ease-out);
}
.crew-card:hover .crew-photo img { filter: grayscale(0.2); transform: scale(1.03); }
.crew-photo-mono {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 164, 92, 0.12), transparent 60%),
    var(--ink);
}
.crew-initials {
  font-family: var(--engraved);
  font-weight: 700;
  font-size: 84px;
  color: var(--brass);
  opacity: 0.85;
}
.crew-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; color: var(--parchment); }
.crew-role { color: var(--brass); margin: 8px 0 12px; display: block; }
.crew-bio { color: var(--text-dim); font-size: 15px; max-width: 40ch; }

.bamf-long { padding: clamp(90px, 13vh, 170px) var(--gutter); }
.bamf-long-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.bamf-long-copy .h-display { margin-bottom: 28px; }
.bamf-long-copy p { margin-bottom: 1.2em; color: #4a4028; max-width: 60ch; }
.bamf-long-copy p:first-of-type { color: var(--ink-on-parchment); font-size: 19px; }
.bamf-long-fig { position: sticky; top: 110px; }
.bamf-long-fig img { border: 1px solid var(--parchment-line); }
.bamf-long-fig figcaption { margin-top: 12px; color: var(--dim-on-parchment); }

.code { padding: clamp(90px, 13vh, 170px) var(--gutter); }
.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  max-width: 1500px;
  margin: 0 auto;
}
.code-card { background: var(--ink); padding: clamp(30px, 4vw, 56px); }
.code-num { color: var(--brass); display: block; margin-bottom: 22px; }
.code-card h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 30px;
  margin-bottom: 14px;
  color: var(--parchment);
}
.code-card p { color: var(--text-dim); font-size: 15px; }

/* ---------- contact page ---------- */

.contact { padding: clamp(140px, 20vh, 220px) var(--gutter) clamp(70px, 10vh, 130px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 120px);
  max-width: 1500px;
  margin: 0 auto;
}
.contact-sub { margin-top: 28px; color: var(--text-dim); max-width: 42ch; }
.contact-side { margin-top: 48px; border-top: 1px solid var(--ink-line); padding-top: 30px; }
.contact-side-head { color: var(--brass); margin: 22px 0 8px; display: block; }
.contact-side p { color: var(--text-dim); font-size: 15px; max-width: 44ch; }

.contact-form-wrap { border: 1px solid var(--ink-line); padding: clamp(26px, 3.4vw, 52px); background: var(--ink-raised); }

.field { display: block; margin-bottom: 22px; flex: 1; }
.field > span { display: block; color: var(--steel); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  transition: border-color 0.25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field-row { display: flex; gap: 22px; }
.field-err {
  display: none;
  font-style: normal;
  color: #d08770;
  font-size: 13px;
  margin-top: 6px;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #d08770; }
.field.is-invalid .field-err { display: block; }

.form-success { text-align: center; padding: 40px 0; }
.form-success h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}
.form-success p { color: var(--text-dim); margin-bottom: 30px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; color: var(--text-dim); font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--brass); }

.form-error { color: #d08770; margin-bottom: 16px; }

/* ---------- shop ---------- */

.shop { padding: clamp(140px, 18vh, 210px) var(--gutter) clamp(80px, 12vh, 150px); max-width: 1500px; margin: 0 auto; }
.shop-head { max-width: 900px; margin-bottom: clamp(50px, 8vh, 90px); }
.shop-title { font-size: clamp(44px, 7.5vw, 120px); }
.shop-sub { margin-top: 24px; color: var(--text-dim); max-width: 52ch; }
.shop-note { margin-top: 18px; color: var(--brass); max-width: 72ch; line-height: 1.8; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.shop-card {
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.shop-card:hover { border-color: var(--brass); transform: translateY(-4px); }
.shop-card.is-soldout { opacity: 0.55; }
.shop-card.is-soldout:hover { border-color: var(--ink-line); transform: none; }

.shop-card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-stamp {
  position: absolute;
  top: 18px; right: -34px;
  background: var(--ink);
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 6px 44px;
  transform: rotate(35deg);
}
.shop-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.shop-card-line { color: var(--brass); }
.shop-card-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 34px;
  margin: 8px 0 12px;
  color: var(--parchment);
}
.shop-card-blurb { color: var(--text-dim); font-size: 15px; flex: 1; }
.shop-card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.shop-price { font-size: 18px; color: var(--parchment); }
.shop-price-dead { color: var(--steel); }

.qty { display: flex; border: 1px solid var(--ink-line); }
.qty-btn {
  width: 36px; height: 42px;
  background: none;
  border: none;
  color: var(--brass);
  font-size: 18px;
  cursor: pointer;
}
.qty-btn:hover { background: rgba(201, 164, 92, 0.1); }
.qty input {
  width: 44px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--ink-line);
  border-right: 1px solid var(--ink-line);
  color: var(--text);
  text-align: center;
  font-family: var(--mono);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.shop-shipnote { margin-top: 50px; color: var(--steel); }

/* cart drawer */

.cart-scrim, .checkout {
  position: fixed; inset: 0;
  background: rgba(6, 9, 12, 0.72);
  z-index: 200;
}
.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--ink-raised);
  border-left: 1px solid var(--ink-line);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  visibility: hidden;
}
.cart.is-open { transform: translateX(0); visibility: visible; }

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--ink-line);
}
.cart-head h2 { color: var(--brass); font-weight: 500; letter-spacing: 0.2em; }
.cart-close {
  background: none; border: none;
  color: var(--steel);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--parchment); }

.cart-body { flex: 1; overflow-y: auto; padding: 26px; }
.cart-empty { color: var(--steel); }
.cart-lines { list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--ink-line);
}
.cart-line-name { color: var(--parchment); font-weight: 600; }
.cart-line-meta { font-family: var(--mono); font-size: 12px; color: var(--steel); letter-spacing: 0.1em; }
.cart-line-remove {
  background: none; border: none;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-transform: uppercase;
  justify-self: end;
}
.cart-line-remove:hover { color: #d08770; }

.cart-foot { padding: 26px; border-top: 1px solid var(--ink-line); }
.cart-total { display: flex; justify-content: space-between; color: var(--parchment); font-size: 15px; margin-bottom: 18px; }

.cart-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 150;
  background: var(--brass);
  color: var(--ink);
  border: none;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.cart-fab:hover { background: var(--brass-bright); transform: translateY(-2px); }

/* checkout modal */

.checkout { display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.checkout-panel {
  position: relative;
  width: min(640px, 100%);
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  padding: clamp(28px, 4vw, 52px);
  max-height: 92svh;
  overflow-y: auto;
}
.checkout-panel .cart-close { position: absolute; top: 18px; right: 20px; }
.checkout-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 40px;
  color: var(--parchment);
  margin-bottom: 14px;
}
.checkout-note { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.checkout-done { text-align: center; padding: 30px 0; }
.checkout-done h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.checkout-number { font-size: 20px; color: var(--parchment); margin-bottom: 18px; }
.checkout-done p { color: var(--text-dim); margin-bottom: 26px; }

/* age gate */

.agegate {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(6, 9, 12, 0.9);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.agegate-panel {
  text-align: center;
  border: 1px solid var(--ink-line);
  background: var(--ink);
  padding: clamp(36px, 5vw, 64px);
  max-width: 480px;
}
.agegate-mark { width: 72px; margin: 0 auto 24px; }
.agegate-panel h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 42px;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 12px;
}
.agegate-panel p { color: var(--text-dim); margin-bottom: 30px; }
.agegate-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.lost-sub { margin: 26px 0 10px; color: var(--text-dim); max-width: 44ch; }
.lost .hero-ctas { justify-content: flex-start; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .dossier-grid, .dossier-flip .dossier-grid { grid-template-columns: 1fr 1fr; }
  .dossier-rail { grid-column: 1 / -1; position: static; order: 3 !important; }
  .press-num { -webkit-text-stroke-width: 1.5px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }

  .manifesto-grid, .bamf, .bamf-long-grid, .contact-grid, .cig-hero { grid-template-columns: 1fr; }
  .bamf-long-fig { position: static; }
  .logstrip-row { grid-template-columns: 1fr 1fr; }
  .logstat { border-top: 1px solid var(--ink-line); }
  .find-grid, .crew-grid, .code-grid { grid-template-columns: 1fr; }

  .manifest-row { grid-template-columns: 1fr; gap: 16px; }
  .manifest-index, .manifest-go { display: none; }
  .manifest-media { max-width: 420px; }

  .story-grid { grid-template-columns: 1fr; }
  .story-rope { display: none; }

  .field-row { flex-direction: column; gap: 0; }

  .voyage-head { right: var(--gutter); }
  .voyage-tip { display: none; }
  .hero-fathom { display: none; }
}

/* ---------- reduced motion: keep fades, kill theatrics ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .fathom-rope i { animation: none; }
  .hero-img, .about-hero-fig img { transform: none !important; }
  .marquee-track { transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---- interior page head shared by events + ports of call ---- */
.events-hero {
  padding: clamp(140px, 20vh, 220px) var(--gutter) clamp(60px, 9vh, 110px);
  max-width: 1500px;
  margin: 0 auto;
}
.events-hero .h-giant { font-size: clamp(44px, 8.5vw, 128px); }
.events-sub { margin-top: 30px; max-width: 46ch; color: var(--text-dim); }
.events-list { padding: 0 var(--gutter) clamp(60px, 9vh, 110px); max-width: 1500px; margin: 0 auto; }
.events-empty {
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
  padding: 34px 36px;
  max-width: 640px;
}
.events-empty .mono { color: var(--brass); letter-spacing: 0.16em; font-size: 13px; margin-bottom: 12px; }
.events-empty p:last-child { color: var(--text-dim); line-height: 1.6; }

/* ---- where to buy: the chart ---- */
.chart-wrap { padding: 20px var(--gutter) 0; max-width: 1500px; margin: 0 auto; }
.chart-map {
  height: clamp(380px, 60vh, 620px);
  border: 1px solid var(--ink-line);
  outline: 1px solid rgba(201, 164, 92, 0.35);
  outline-offset: 6px;
  background: var(--ink-raised);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.chart-fallback { color: var(--text-dim); letter-spacing: 0.14em; font-size: 12px; padding: 20px; text-align: center; }
.chart-caption { color: var(--text-dim); font-size: 11px; letter-spacing: 0.18em; margin: 14px 2px 0; }
.chart-map.leaflet-container, .chart-map .leaflet-container { background: var(--ink); font-family: inherit; }
/* standard OSM tiles inverted into the ship's night palette */
.chart-tiles-dark { filter: invert(1) hue-rotate(190deg) brightness(0.72) contrast(0.95) saturate(0.35); }
.chart-map .leaflet-popup-content-wrapper {
  background: var(--ink-raised); color: var(--text);
  border: 1px solid var(--brass); border-radius: 0; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.chart-map .leaflet-popup-content { margin: 12px 16px; font-size: 13px; line-height: 1.5; }
.chart-map .leaflet-popup-content a { color: var(--brass-bright); }
.chart-map .leaflet-popup-tip { background: var(--brass); }
.chart-map .leaflet-popup-close-button { color: var(--text-dim); }
.chart-map .leaflet-bar a { background: var(--ink-raised); color: var(--brass); border-color: var(--ink-line); }
.chart-map .leaflet-bar a:hover { background: var(--ink); color: var(--brass-bright); }
.port-pin-wrap { position: relative; }
.port-pin {
  position: absolute; inset: 3px;
  background: var(--brass-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(12, 17, 23, 0.9);
}
.port-pin-ring {
  position: absolute; inset: -4px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  animation: portPing 2.4s ease-out infinite;
}
@keyframes portPing {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .port-pin-ring { animation: none; opacity: 0.5; } }

.ports-list { padding: clamp(50px, 8vw, 90px) var(--gutter); max-width: 1500px; margin: 0 auto; }
.ports-head { color: var(--brass); letter-spacing: 0.22em; font-size: 13px; margin-bottom: 28px; }
.ports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.port-card {
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
  padding: 22px 22px 20px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.port-card[data-lat] { cursor: pointer; }
.port-card[data-lat]:hover, .port-card[data-lat]:focus-visible {
  border-color: var(--brass);
  transform: translateY(-3px);
  outline: none;
}
.port-num { position: absolute; top: 16px; right: 18px; color: var(--ink-line); font-size: 20px; }
.port-card:hover .port-num { color: var(--brass); }
.port-name { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: 0.02em; text-transform: uppercase; margin: 0 40px 10px 0; }
.port-address { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.port-phone { display: block; color: var(--text); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; }
.port-phone:hover { color: var(--brass-bright); }
.port-directions { color: var(--brass); font-size: 11px; letter-spacing: 0.16em; }
.port-directions:hover { color: var(--brass-bright); }

.ports-cta { text-align: center; padding: clamp(50px, 8vw, 90px) 20px clamp(70px, 10vw, 110px); border-top: 1px solid var(--ink-line); }
.ports-cta-head { font-family: var(--display); font-size: clamp(26px, 4vw, 44px); text-transform: uppercase; margin-bottom: 12px; }
.ports-cta-sub { color: var(--text-dim); margin-bottom: 26px; }
