:root {
  --ink: #06171c;
  --deep: #08262c;
  --sea: #0c3b42;
  --turquoise: #2fc4c1;
  --foam: #d9f6ed;
  --paper: #ead8bc;
  --paper-deep: #c8a675;
  --gold: #f0b94a;
  --gold-deep: #a96c18;
  --rust: #b45531;
  --white: #fffaf0;
  --display: "Pirata One", Georgia, serif;
  --type: "Work Sans", system-ui, sans-serif;
  --stamp: "Special Elite", monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font: 400 1rem/1.75 var(--type);
}
body.menu-open { overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--gold); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: .7rem 1rem;
  color: var(--ink);
  background: var(--gold);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #16444a, #051216 67%);
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.is-gone { opacity: 0; visibility: hidden; }
.loader-mark { display: grid; justify-items: center; gap: 1rem; color: var(--gold); font: 1rem var(--stamp); letter-spacing: .08em; }
.loader-mark img { width: min(44vw, 230px); filter: drop-shadow(0 18px 40px #000); animation: loader-float 1.8s ease-in-out infinite; }

.world { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: linear-gradient(155deg, #07181c 0%, #0a3035 46%, #051317 100%); }
.world__glow { position: absolute; width: 70vw; height: 70vw; left: -22vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(47,196,193,.2), transparent 65%); animation: breathe 8s ease-in-out infinite alternate; }
.world__mist { position: absolute; inset: -30%; opacity: .18; background: radial-gradient(ellipse at 30% 55%, #d7eee4 0 4%, transparent 25%), radial-gradient(ellipse at 70% 35%, #85c8bf 0 3%, transparent 22%), radial-gradient(ellipse at 55% 80%, #d7eee4 0 5%, transparent 28%); filter: blur(35px); }
.world__mist--one { animation: drift 28s linear infinite; }
.world__mist--two { opacity: .1; transform: scale(1.3) rotate(30deg); animation: drift-reverse 36s linear infinite; }
.world__water { position: absolute; inset: 42% -20% -20%; opacity: .36; background: repeating-radial-gradient(ellipse at 50% 100%, rgba(47,196,193,.17) 0 2px, transparent 3px 28px); transform: perspective(400px) rotateX(52deg); transform-origin: bottom; animation: tide 12s ease-in-out infinite alternate; }
.world__grain { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.cursor-light { position: fixed; z-index: -1; width: 460px; height: 460px; margin: -230px 0 0 -230px; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(240,185,74,.075), transparent 68%); transform: translate3d(-1000px,-1000px,0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 36px), var(--max));
  min-height: 72px;
  padding: 0 18px 0 12px;
  border: 1px solid rgba(234,216,188,.2);
  border-radius: 18px;
  background: rgba(6,23,28,.78);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: top .3s, background .3s, border-color .3s;
}
.site-header.is-scrolled { top: 8px; background: rgba(6,23,28,.94); border-color: rgba(240,185,74,.28); }
.brand { position: relative; z-index: 2; display: block; width: 92px; height: 70px; }
.brand img { width: 92px; margin-top: -10px; filter: drop-shadow(0 8px 15px rgba(0,0,0,.45)); transition: transform .35s ease; }
.brand:hover img { transform: rotate(-3deg) scale(1.06); }
.main-nav { display: flex; justify-content: center; gap: clamp(1.2rem, 3vw, 2.8rem); }
.main-nav a { position: relative; padding: .5rem 0; color: rgba(255,250,240,.74); text-decoration: none; font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 2px; background: var(--gold); transition: right .25s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-cta { padding: .65rem 1rem; border: 1px solid rgba(240,185,74,.45); border-radius: 10px; color: var(--gold); text-decoration: none; font: .95rem var(--stamp); transition: background .25s, color .25s; }
.header-cta:hover { color: var(--ink); background: var(--gold); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  min-height: 100svh;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 150px 0 100px;
}
.hero::before { content: ""; position: absolute; left: -12vw; right: -12vw; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,185,74,.65), transparent); }
.hero__copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font: .94rem var(--stamp); letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: .95; }
h1 { margin-bottom: 1.5rem; font: clamp(4.6rem, 9.5vw, 9rem)/.84 var(--display); letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 12px 45px rgba(0,0,0,.3); }
h1 span, h2 span { color: var(--gold); }
.hero__lead { max-width: 620px; margin: 0; color: rgba(255,250,240,.76); font-size: clamp(1.05rem, 1.45vw, 1.2rem); }
.hero__actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.2rem; }
.button { position: relative; display: inline-flex; align-items: center; min-height: 54px; padding: 0 1.6rem; overflow: hidden; border: 1px solid var(--gold); border-radius: 12px 4px 12px 4px; text-decoration: none; font-weight: 800; letter-spacing: .035em; }
.button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s; }
.button:hover::before { transform: translateX(130%); }
.button span { position: relative; z-index: 1; }
.button--gold { color: #201509; background: linear-gradient(135deg, #ffd36f, #d38d23); box-shadow: 0 12px 35px rgba(240,185,74,.2); }
.text-link { color: var(--foam); text-decoration: none; border-bottom: 1px solid rgba(217,246,237,.35); }
.text-link span { display: inline-block; margin-left: .4rem; transition: transform .25s; }
.text-link:hover span { transform: translateY(5px); }
.hero__emblem { position: relative; display: grid; place-items: center; justify-self: end; width: min(46vw, 580px); aspect-ratio: 1; transition: transform .25s ease-out; }
.hero__emblem::before, .hero__emblem::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(240,185,74,.28); animation: slow-spin 36s linear infinite; }
.hero__emblem::before { inset: 4%; }
.hero__emblem::after { inset: 12%; animation-direction: reverse; animation-duration: 25s; }
.hero__emblem > img { position: relative; z-index: 2; width: 78%; filter: drop-shadow(0 35px 28px rgba(0,0,0,.55)); animation: hero-float 5s ease-in-out infinite; }
.emblem-glow { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(240,185,74,.26), rgba(47,196,193,.12) 40%, transparent 68%); filter: blur(10px); animation: breathe 4s ease-in-out infinite alternate; }
.hero__seal { position: absolute; z-index: 3; right: 3%; bottom: 16%; display: grid; place-items: center; width: 118px; aspect-ratio: 1; border: 2px solid var(--gold); outline: 1px dashed rgba(240,185,74,.75); outline-offset: -9px; border-radius: 50%; color: var(--ink); background: var(--gold); font-family: var(--stamp); transform: rotate(-10deg); box-shadow: 0 15px 35px rgba(0,0,0,.35); }
.hero__seal strong { font-size: 1.5rem; line-height: 1; }
.hero__seal span { font-size: .72rem; text-transform: uppercase; }
.scroll-cue { position: absolute; left: 0; bottom: 25px; display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.45); font: .75rem var(--stamp); letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue span { display: block; width: 36px; height: 1px; background: var(--gold); animation: cue 1.6s ease-in-out infinite; transform-origin: left; }
.hero__orbit { position: absolute; right: -28vw; top: -20vw; width: 55vw; height: 55vw; border: 1px solid rgba(47,196,193,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(47,196,193,.02), 0 0 0 140px rgba(47,196,193,.015); }

.marquee { position: relative; overflow: hidden; border-block: 1px solid rgba(240,185,74,.35); background: rgba(5,19,23,.72); transform: rotate(-1deg) scale(1.02); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 1.7rem; padding: .9rem 0; animation: marquee 28s linear infinite; }
.marquee span { color: var(--paper); font: 1.05rem var(--stamp); letter-spacing: .11em; text-transform: uppercase; }
.marquee i { color: var(--gold); font-style: normal; }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: clamp(100px, 13vw, 180px) 0; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 3rem; margin-bottom: 4rem; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -1rem; }
.section-heading h2 { margin: 0; font: clamp(3.6rem, 6.7vw, 7rem)/.86 var(--display); }
.section-heading > p:last-child { max-width: 520px; margin: 0 0 .6rem; color: rgba(255,250,240,.66); }

.treasure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.treasure-card { position: relative; min-height: 340px; padding: 2rem; overflow: hidden; border: 1px solid rgba(234,216,188,.2); border-radius: 28px 8px 28px 8px; background: linear-gradient(145deg, rgba(234,216,188,.11), rgba(4,18,22,.5)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.14); transition: transform .35s, border-color .35s, background .35s; }
.treasure-card:hover { transform: translateY(-10px) rotate(.35deg); border-color: rgba(240,185,74,.55); background: linear-gradient(145deg, rgba(240,185,74,.15), rgba(4,18,22,.58)); }
.card-number { position: absolute; right: 1.6rem; top: 1.25rem; color: rgba(240,185,74,.45); font: 1rem var(--stamp); }
.card-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 1rem 0 3.8rem; border: 1px dashed rgba(240,185,74,.55); border-radius: 50%; color: var(--gold); font-size: 2rem; transition: transform .5s; }
.treasure-card:hover .card-icon { transform: rotate(180deg) scale(1.08); }
.treasure-card h3 { margin-bottom: 1rem; color: var(--paper); font: 2.1rem/1 var(--display); }
.treasure-card p { margin: 0; color: rgba(255,250,240,.64); }

.story { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.story__visual { position: relative; }
.map-card { position: relative; display: grid; place-items: center; min-height: 580px; padding: 3rem; overflow: hidden; border-radius: 10px 36px 10px 36px; color: var(--ink); background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.42), transparent 24%), linear-gradient(135deg, #f0dfc2, #caa979); box-shadow: 0 35px 70px rgba(0,0,0,.35); transform: rotate(-2deg); }
.map-card::before { content: ""; position: absolute; inset: 16px; border: 1px dashed rgba(72,44,19,.38); }
.map-card::after { content: ""; position: absolute; inset: 0; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.map-card img { position: relative; z-index: 2; width: min(84%, 390px); filter: drop-shadow(0 22px 20px rgba(54,31,13,.28)); }
.map-card p { position: relative; z-index: 2; margin: 1rem 0 0; font: 1.08rem/1.5 var(--stamp); text-align: center; }
.map-line { position: absolute; z-index: 1; width: 240px; height: 160px; border: 3px dashed rgba(104,62,22,.35); border-color: rgba(104,62,22,.35) transparent transparent; border-radius: 50%; }
.map-line--one { left: -60px; top: 100px; transform: rotate(25deg); }
.map-line--two { right: -50px; bottom: 80px; transform: rotate(210deg); }
.story__copy h2 { margin-bottom: 2rem; font: clamp(4rem, 7vw, 7rem)/.86 var(--display); }
.story__copy > p:not(.eyebrow) { color: rgba(255,250,240,.7); }
.story__copy strong { color: var(--paper); }
.story blockquote { margin: 2rem 0 0; padding: 1.2rem 0 1.2rem 1.5rem; border-left: 3px solid var(--gold); color: var(--paper); font: 1.2rem/1.55 var(--stamp); }

.gallery-section { width: min(calc(100% - 24px), 1460px); }
.section-heading--center { display: block; max-width: 850px; margin-inline: auto; text-align: center; }
.section-heading--center .eyebrow { margin-bottom: 1rem; }
.section-heading--center > p:last-child { margin: 1.7rem auto 0; }
.gallery { display: grid; grid-auto-rows: 280px; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery-card { position: relative; margin: 0; padding: 0; overflow: hidden; border: 1px solid rgba(234,216,188,.16); border-radius: 22px 6px 22px 6px; color: var(--white); background: #0a1c20; cursor: zoom-in; }
.gallery-card--wide { grid-column: span 2; }
.gallery-card--tall { grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1), filter .5s; }
.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,15,18,.92)); opacity: .65; transition: opacity .4s; }
.gallery-card span { position: absolute; z-index: 2; left: 1.2rem; bottom: 1rem; padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; background: rgba(5,19,23,.48); backdrop-filter: blur(8px); font: .76rem var(--stamp); letter-spacing: .08em; text-transform: uppercase; transform: translateY(12px); opacity: 0; transition: opacity .35s, transform .35s; }
.gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.08); filter: saturate(1.16) contrast(1.04); }
.gallery-card:hover span, .gallery-card:focus-visible span { opacity: 1; transform: translateY(0); }
.gallery-card:hover::after, .gallery-card:focus-visible::after { opacity: .9; }

.cta-section { position: relative; width: min(calc(100% - 48px), 1100px); margin: 5rem auto 10rem; padding: clamp(4rem, 8vw, 7rem) 2rem; overflow: hidden; border: 1px solid rgba(240,185,74,.36); border-radius: 44px 10px 44px 10px; background: radial-gradient(circle at 50% 0, rgba(240,185,74,.17), transparent 46%), rgba(6,23,28,.66); box-shadow: 0 40px 100px rgba(0,0,0,.28); text-align: center; }
.cta-section::before, .cta-section::after { content: "✦"; position: absolute; color: rgba(240,185,74,.2); font-size: 9rem; }
.cta-section::before { left: 3%; top: -4rem; }
.cta-section::after { right: 3%; bottom: -4rem; }
.cta-section h2 { margin: 0 0 2.4rem; font: clamp(3.4rem, 7vw, 6.6rem)/.9 var(--display); }

footer { display: grid; justify-items: center; gap: 1rem; padding: 4rem 24px 3rem; border-top: 1px solid rgba(234,216,188,.15); background: rgba(3,13,16,.82); text-align: center; }
.footer-logo img { width: 150px; filter: drop-shadow(0 14px 20px rgba(0,0,0,.45)); }
footer p { margin: 0; color: rgba(255,250,240,.5); }
footer nav { display: flex; gap: 1.5rem; }
footer nav a { color: var(--paper); text-underline-offset: 4px; }
footer small { color: rgba(255,250,240,.35); }

.lightbox { width: min(92vw, 1200px); max-width: none; max-height: 92vh; padding: 0; overflow: visible; border: 1px solid rgba(240,185,74,.5); border-radius: 28px 8px 28px 8px; background: #07191d; box-shadow: 0 40px 120px #000; }
.lightbox::backdrop { background: rgba(2,9,11,.88); backdrop-filter: blur(12px); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: inherit; }
.lightbox__close { position: absolute; z-index: 2; right: -12px; top: -12px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--gold); border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 2rem; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes loader-float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes breathe { to { transform: scale(1.12); opacity: .65; } }
@keyframes drift { to { transform: translate3d(22%, -4%, 0) rotate(8deg); } }
@keyframes drift-reverse { to { transform: translate3d(-18%, 6%, 0) scale(1.3) rotate(15deg); } }
@keyframes tide { to { transform: perspective(400px) rotateX(49deg) translateY(22px) scale(1.04); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes hero-float { 50% { transform: translateY(-14px) rotate(1.4deg); } }
@keyframes cue { 50% { transform: scaleX(.35); opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { position: relative; z-index: 3; grid-column: 3; display: grid; gap: 5px; width: 48px; height: 44px; padding: 11px; border: 1px solid rgba(240,185,74,.3); border-radius: 10px; background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--gold); transition: transform .25s, opacity .25s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: -18px -18px auto; z-index: 1; display: grid; place-content: center; gap: 2rem; min-height: 100svh; padding: 8rem 2rem; background: rgba(5,19,23,.98); transform: translateY(-110%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
  .menu-open .main-nav { transform: translateY(0); }
  .main-nav a { font: 2.4rem var(--display); text-align: center; }
  .hero { grid-template-columns: 1fr; padding-top: 145px; text-align: center; }
  .hero__copy { order: 2; }
  .hero__emblem { order: 1; justify-self: center; width: min(72vw, 470px); margin-bottom: 1rem; }
  .hero__actions { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .scroll-cue { display: none; }
  .section-heading { display: block; }
  .section-heading > p:last-child { margin-top: 1.7rem; }
  .treasure-grid { grid-template-columns: 1fr; }
  .treasure-card { min-height: 285px; }
  .card-icon { margin-bottom: 2.6rem; }
  .story { grid-template-columns: 1fr; }
  .story__visual { max-width: 560px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { top: 8px; width: calc(100% - 16px); }
  .brand, .brand img { width: 78px; }
  .hero { width: min(calc(100% - 28px), var(--max)); padding-top: 115px; }
  h1 { font-size: clamp(3.75rem, 19vw, 5.6rem); }
  .hero__emblem { width: min(86vw, 380px); }
  .hero__seal { width: 88px; right: 0; bottom: 10%; }
  .hero__seal strong { font-size: 1.1rem; }
  .hero__actions { flex-direction: column; gap: 1.2rem; }
  .section { width: min(calc(100% - 28px), var(--max)); padding: 95px 0; }
  .section-heading h2, .story__copy h2 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .map-card { min-height: 430px; padding: 2rem; }
  .gallery-section { width: calc(100% - 16px); }
  .gallery { grid-auto-rows: 230px; grid-template-columns: 1fr; }
  .gallery-card--wide { grid-column: auto; }
  .gallery-card--tall { grid-row: auto; }
  .gallery-card span { opacity: 1; transform: none; }
  .cta-section { width: calc(100% - 28px); margin-bottom: 5rem; }
}

@media (hover: none) { .cursor-light { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
