/* Hero photography stays separate from the interactive content. */
.nav {
  position: absolute;
  inset: 0 5vw auto;
  height: 110px;
  z-index: 5;
  border-bottom: 1px solid rgba(242, 238, 229, .2);
}
.nav .brand {
  width: 108px;
  height: 108px;
  border: 0;
  border-radius: 50%;
  background: url('assets/black-sails-logo-trimmed.svg') center / cover no-repeat;
  transform: none;
  flex: none;
}
.nav .brand span { display: none; }
.nav nav a,
.nav .bag { transition: color .2s ease, opacity .2s ease; }
.nav nav a:hover,
.nav .bag:hover { color: #d8ad69; }
.nav .bag { display: inline-flex; align-items: center; gap: 7px; }
.nav .bag b { margin-left: 0; }
.hero {
  min-height: max(680px, 100dvh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 150px 5vw 100px;
  background: #0b0a09 url('assets/hero-marble-v2.png') center / cover no-repeat;
}
.hero-media {
  display: block;
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 150dvh);
  z-index: -2;
  background: none;
  filter: none;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,6,.98) 0%, rgba(7,7,6,.94) 18%, rgba(7,7,6,.78) 34%, rgba(7,7,6,.42) 49%, rgba(7,7,6,.08) 68%, transparent 84%), linear-gradient(180deg, rgba(7,7,6,.45), transparent 23%), linear-gradient(0deg, rgba(7,7,6,.36), transparent 20%);
}
.hero-copy {
  display: block;
  position: relative;
  z-index: 2;
  width: min(54vw, 790px);
  padding: 0;
  margin: 40px 0 0;
}
.hero-copy .eyebrow {
  margin-bottom: 23px;
  color: #d7a85e;
  letter-spacing: 3px;
}
.hero h1 {
  max-width: 850px;
  font-size: clamp(62px, 6.7vw, 112px);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: none;
  text-wrap: balance;
}
.hero-bottom {
  display: block;
  margin-top: 30px;
}
.hero-bottom p {
  margin: 0 0 32px;
  color: #e4ddd2;
  font: 20px/1.4 'Playfair Display', Georgia, serif;
}
.hero-bottom .button {
  min-width: 290px;
  width: fit-content;
  background: #f2eee5;
  color: #11100d;
}
.hero-bottom .button:hover { background: #fff8eb; }
.hero-bottom .button:active { transform: translateY(1px) scale(.99); }
.hero-place { right: 5vw; bottom: 24px; z-index: 2; }
.pager { display: none; }
.nav a:focus-visible,
.hero a:focus-visible { outline: 2px solid #d7a85e; outline-offset: 5px; }
@media (max-width: 800px) {
  .nav { height: 76px; }
  .nav .brand { width: 70px; height: 70px; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 8px; letter-spacing: .7px; }
  .nav .bag span { display: none; }
  .hero { min-height: 760px; padding: 120px 7vw 62px; align-items: flex-end; }
  .hero-media { width: 100%; height: 100%; }
  .hero-media img { object-fit: contain; object-position: center top; }
  .hero::after { background: linear-gradient(0deg, rgba(7,7,6,.96) 0%, rgba(7,7,6,.81) 31%, rgba(7,7,6,.12) 83%), linear-gradient(180deg, rgba(7,7,6,.42), transparent 23%); }
  .hero-copy { width: 100%; margin: 0; }
  .hero h1 { font-size: clamp(46px, 11vw, 78px); letter-spacing: -.05em; }
  .hero-bottom p { font-size: 16px; }
  .hero-place { display: none; }
}
@media (max-width: 600px) {
  .hero {
    --mobile-photo-height: clamp(390px, 51dvh, 450px);
    display: block;
    min-height: max(760px, 100dvh);
    padding: calc(var(--mobile-photo-height) + 28px) 7vw 72px;
  }
  .hero-media { inset: 0 0 auto; height: var(--mobile-photo-height); }
  .hero-media img { object-fit: cover; object-position: center 18%; }
  .hero::after {
    background: linear-gradient(0deg, #0b0a09 0%, #0b0a09 35%, rgba(11,10,9,.75) 51%, transparent 63%), linear-gradient(180deg, rgba(7,7,6,.56), transparent 23%);
  }
}
@media (max-width: 450px) {
  .nav nav a:nth-child(2) { display: none; }
  .hero-bottom .button { width: 100%; min-width: 0; }
}
/* Blend the photo into the mineral panel and protect navbar contrast. */
.nav { background: linear-gradient(180deg, rgba(7,7,6,.68), rgba(7,7,6,.07)); }

.scent-transition {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.scent-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #080807;
  opacity: 0;
}
.scent-transition img {
  position: absolute;
  top: 22%;
  left: -22%;
  width: 140%;
  height: auto;
  opacity: 0;
  filter: grayscale(1) sepia(.8) saturate(.7);
}
body.scent-active .scent-transition { visibility: visible; }
body.scent-active .scent-transition::before { animation: scent-veil .72s cubic-bezier(.22,.72,0,1) both; }
body.scent-active .scent-transition img { animation: scent-spray .72s cubic-bezier(.22,.72,0,1) both; }
@keyframes scent-veil {
  0%, 44% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes scent-spray {
  0% { opacity: 0; transform: translateX(-18%) scale(.8); }
  20% { opacity: .6; }
  76% { opacity: .48; }
  100% { opacity: 0; transform: translateX(17%) scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  body.scent-active .scent-transition { visibility: hidden; }
}


/* Homepage identity: graphic typography and a crafted, purposeful action. */
.hero { min-height: min(900px, max(700px, 100dvh)); }
.hero-copy { width: min(58vw, 800px); }
.hero-kicker { display: flex; align-items: center; gap: 18px; }
.hero-kicker span { width: 64px; height: 1px; background: #bd8e53; }
.hero h1 em { color: #c69b68; font-weight: inherit; font-style: normal; }
.hero-bottom p { max-width: 32ch; }
.hero-action { display: inline-flex; justify-content: center; align-items: center; padding: 20px 30px; min-width: 260px; min-height: 64px; border: 1px solid #bb8e5d; color: #f4eee4; text-decoration: none; font: 500 10px/1 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .17em; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.hero-action:hover { color: #11100d; background: #e6d3b8; border-color: #e6d3b8; }
.hero-action:active { background: #d0b38e; }
.hero-action:focus-visible, .hero-discover:focus-visible { outline: 2px solid #f2eee5; outline-offset: 5px; }
.hero-discover { position: absolute; bottom: 26px; left: 5vw; display: flex; align-items: center; gap: 16px; color: #e8dccb; text-decoration: none; font: 500 9px/1.2 'DM Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }
.hero-discover-line { width: 42px; height: 1px; background: #d3a26b; transition: width .25s ease; }
.hero-discover:hover .hero-discover-line { width: 56px; }
.hero-place { color: #e8dccb; }
.hero-place span { color: #c69b68; }
.nav nav a { position: relative; }
.nav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: #d5a75f; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav nav a:hover::after, .nav nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 800px) {
  .hero-copy { width: 100%; }
  .hero-discover { left: 7vw; bottom: 22px; }
}
@media (max-width: 600px) {
  .hero { min-height: max(760px, 100dvh); padding-bottom: 86px; }
  .hero-action { min-width: min(100%, 310px); }
}
@media (max-width: 450px) {
  .hero-action { width: 100%; }
  .nav nav a:nth-child(2) { display: inline; }
  .nav nav { gap: 9px; }
  .nav nav a { font-size: 9px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-action, .hero-discover-line, .nav nav a::after { transition: none; }
  html { scroll-behavior: auto; }
}
