/* Pirates Life — core design system */
:root {
  --ink: #03090e;
  --navy-950: #041019;
  --navy-900: #061722;
  --navy-800: #092636;
  --ocean: #0b4050;
  --ocean-bright: #2b8794;
  --gold: #d5a74e;
  --gold-light: #f2d78b;
  --wood: #5e3822;
  --cream: #f4efe3;
  --mist: #b8c9ca;
  --muted: #8fa4a8;
  --line: rgba(216, 187, 119, 0.18);
  --glass: rgba(7, 25, 35, 0.72);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-height: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold-light);
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-grain {
  position: fixed;
  z-index: 100;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  z-index: 105;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(242, 215, 139, .6);
}

/* Typography */
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .24em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

h2 em, h3 em {
  color: var(--gold-light);
  font-weight: 400;
}

.lead {
  color: #e3e8e5;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.section {
  position: relative;
  padding: 130px 0;
  overflow: clip;
}

.section-heading { margin-bottom: 58px; }
.section-heading.centered { max-width: 680px; margin-inline: auto; text-align: center; }
.section-heading.centered > p:last-child { max-width: 560px; margin: -8px auto 0; color: var(--muted); }
.section-heading.split { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 48px; }
.section-heading.split > p { margin-bottom: 4px; color: var(--muted); }

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, color .35s;
}

.button::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255,255,255,.15);
  transform: translateX(-105%) skewX(-18deg);
  transition: transform .5s var(--ease);
}

.button:hover { transform: translateY(-3px); }
.button:hover::after { transform: translateX(105%) skewX(-18deg); }
.button svg { width: 20px; height: 20px; fill: currentColor; }

.button--gold {
  color: #0b1112;
  background: linear-gradient(135deg, var(--gold-light), #b77d27);
  border-color: rgba(255, 239, 182, .55);
  box-shadow: 0 10px 30px rgba(167, 110, 27, .25), inset 0 1px rgba(255,255,255,.3);
}
.button--gold:hover { box-shadow: 0 15px 40px rgba(183, 125, 39, .38), inset 0 1px rgba(255,255,255,.35); }
.button--outline { color: var(--cream); border-color: rgba(241, 213, 139, .55); background: rgba(5, 17, 24, .5); backdrop-filter: blur(10px); }
.button--outline:hover { color: var(--gold-light); border-color: var(--gold-light); }
.button--large { min-height: 60px; padding-inline: 30px; }

/* Navigation */
.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s, transform .35s var(--ease);
}

.site-header.is-scrolled {
  border-color: rgba(215, 181, 105, .12);
  background: rgba(3, 12, 18, .88);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}

.nav-shell { display: flex; height: var(--header-height); align-items: center; justify-content: space-between; }

.brand { display: flex; width: 122px; height: 66px; align-items: center; }
.brand img { width: 100%; height: 100%; object-fit: contain; }

.nav-menu, .nav-links { display: flex; align-items: center; }
.nav-menu { gap: 25px; }
.nav-links { gap: clamp(14px, 1.7vw, 26px); margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  padding: 28px 0 23px;
  color: #dce5e3;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: color .25s;
}
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active, .nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.is-active::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a.studio-nav-link { color: var(--gold-light); }
.nav-cta { min-height: 44px; padding: 10px 15px; font-size: .66rem; }
.nav-cta svg { width: 17px; }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 1px; margin: 6px 0; background: var(--cream); transition: transform .3s, opacity .3s; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  place-items: center;
  overflow: hidden;
  background: #03131d;
}

.hero-media, .hero-image, .hero-depth, .hero-vignette { position: absolute; inset: 0; }

.hero-image {
  inset: -3%;
  background-image: url("../images/pirates-life-hero.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(.85) contrast(1.12) brightness(.68);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-depth {
  background:
    radial-gradient(circle at 50% 44%, transparent 0, transparent 19%, rgba(2, 11, 17, .08) 48%, rgba(1, 7, 11, .38) 100%),
    linear-gradient(180deg, rgba(1, 10, 17, .2) 0%, rgba(2, 12, 19, .1) 44%, #030b10 100%);
}

.hero-vignette {
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 180px 40px rgba(0,0,0,.52);
  background: linear-gradient(90deg, rgba(0,0,0,.27), transparent 30%, transparent 70%, rgba(0,0,0,.27));
}

.fog {
  position: absolute;
  z-index: 1;
  width: 160%;
  height: 32%;
  left: -30%;
  opacity: .16;
  filter: blur(24px);
  background: radial-gradient(ellipse at center, rgba(194, 224, 217, .75) 0, rgba(133, 176, 175, .2) 45%, transparent 72%);
  will-change: transform;
}
.fog--one { top: 19%; animation: fogFloat 26s linear infinite alternate; }
.fog--two { top: 52%; opacity: .11; animation: fogFloat 34s linear infinite alternate-reverse; }

.particles { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  bottom: -4%;
  border-radius: 50%;
  opacity: 0;
  background: rgba(213, 230, 215, .75);
  box-shadow: 0 0 6px rgba(167, 214, 204, .35);
  animation: rise var(--duration) linear var(--delay) infinite;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  max-width: 900px;
  padding-top: var(--header-height);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero .eyebrow { margin-bottom: 8px; color: rgba(242, 215, 139, .82); text-shadow: 0 2px 10px #000; }
.hero-logo { width: min(530px, 78vw); margin: -4px 0 -24px; mix-blend-mode: screen; filter: drop-shadow(0 16px 30px rgba(0,0,0,.62)); }
.hero-tagline {
  margin-bottom: 42px;
  color: #f3f2ea;
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  letter-spacing: .01em;
  line-height: 1.7;
  text-shadow: 0 3px 16px rgba(0,0,0,.95);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 34px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(229, 235, 229, .65);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.scroll-cue i { display: block; width: 1px; height: 26px; overflow: hidden; background: rgba(255,255,255,.2); }
.scroll-cue i::after { display: block; width: 100%; height: 12px; content: ""; background: var(--gold-light); animation: scrollCue 1.8s ease-in-out infinite; }

.wave-line {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 42px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 28C210 8 311 52 516 28s328-25 502-2 292 17 422-3V50H0Z' fill='%23040f16'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* About */
.section--about {
  background:
    radial-gradient(circle at 85% 35%, rgba(15, 80, 91, .18), transparent 32%),
    linear-gradient(180deg, #040f16 0%, #071923 100%);
}
.about-grid { display: grid; grid-template-columns: .9fr .8fr; align-items: center; gap: clamp(70px, 10vw, 145px); }
.about-copy p:not(.eyebrow, .lead, .studio-line) { color: var(--muted); }
.studio-line { display: flex; align-items: center; gap: 12px; margin-top: 32px; color: #d1dbd9; font-size: .8rem; letter-spacing: .04em; }
.studio-line span { width: 34px; height: 1px; background: var(--gold); }
.studio-line strong { color: var(--gold-light); }

.about-visual { position: relative; width: min(100%, 380px); margin-left: auto; }
.portrait-frame { position: relative; padding: 11px; border: 1px solid rgba(214, 172, 85, .36); background: rgba(5, 18, 26, .75); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.portrait-frame::before { position: absolute; z-index: -1; inset: 20px -24px -22px 22px; content: ""; border: 1px solid rgba(47, 131, 139, .28); }
.portrait-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.08); }
.frame-corners::before, .frame-corners::after { position: absolute; width: 34px; height: 34px; content: ""; border-color: var(--gold-light); opacity: .7; }
.frame-corners::before { top: 4px; left: 4px; border-top: 1px solid; border-left: 1px solid; }
.frame-corners::after { right: 4px; bottom: 4px; border-right: 1px solid; border-bottom: 1px solid; }
.map-card { position: absolute; right: -22px; bottom: 48px; display: flex; width: 188px; min-height: 68px; padding: 14px 18px; align-items: center; gap: 12px; color: #342514; background: #c4a369; box-shadow: 0 18px 35px rgba(0,0,0,.35); font-family: var(--serif); font-size: .84rem; line-height: 1.25; transform: rotate(-4deg); }
.map-card::after { position: absolute; inset: 5px; content: ""; border: 1px solid rgba(74, 49, 19, .25); }
.map-card svg { position: relative; z-index: 1; width: 31px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.map-card span { position: relative; z-index: 1; display: block; min-width: 0; overflow: visible; white-space: normal; }

.compass-mark {
  position: absolute;
  top: 80px;
  right: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(214, 172, 85, .055);
  border-radius: 50%;
}
.compass-mark::before, .compass-mark::after { position: absolute; inset: 50%; width: 1px; height: 360px; content: ""; background: rgba(214,172,85,.045); transform: translate(-50%,-50%); }
.compass-mark::after { transform: translate(-50%,-50%) rotate(90deg); }

.journey-strip { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin-top: 115px; }
.journey-strip > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.journey-strip span { grid-row: 1 / 3; color: rgba(211, 167, 78, .52); font-family: var(--serif); font-size: 1.65rem; }
.journey-strip strong { color: #e8ece8; font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.journey-strip small { color: var(--muted); font-size: .69rem; }
.journey-strip > i { height: 1px; margin: 0 25px; background: linear-gradient(90deg, var(--line), rgba(213,167,78,.45), var(--line)); }

/* Features */
.section--features {
  background:
    linear-gradient(rgba(3,12,17,.9), rgba(3,12,17,.97)),
    url("../images/pirates-life-header.jpg") center/cover fixed;
}
.section--features::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 50% 50%, rgba(20, 99, 106, .18), transparent 58%); }
.feature-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { position: relative; min-height: 305px; padding: 33px 27px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8,25,33,.5); transition: background .4s, transform .4s var(--ease), box-shadow .4s; }
.feature-card::after { position: absolute; right: -50px; bottom: -80px; width: 150px; height: 150px; content: ""; border: 1px solid rgba(213, 167, 78, .11); border-radius: 50%; transition: transform .5s var(--ease), border-color .5s; }
.feature-card:hover { z-index: 2; background: rgba(13,48,58,.9); box-shadow: 0 24px 50px rgba(0,0,0,.3); transform: translateY(-6px); }
.feature-card:hover::after { border-color: rgba(213,167,78,.28); transform: scale(1.2); }
.feature-number { position: absolute; top: 19px; right: 20px; color: rgba(213,167,78,.34); font-family: var(--serif); font-size: .72rem; }
.feature-icon { display: grid; width: 50px; height: 50px; margin-bottom: 27px; place-items: center; color: var(--gold); border: 1px solid rgba(213,167,78,.22); transform: rotate(45deg); transition: color .35s, border-color .35s, background .35s; }
.feature-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); }
.feature-glyph { font-family: var(--serif); font-size: 1.45rem; font-style: normal; line-height: 1; transform: rotate(-45deg); }
.feature-card:hover .feature-icon { color: var(--gold-light); border-color: var(--gold); background: rgba(213,167,78,.08); }
.feature-card h3 { margin: 0 0 12px; color: #e9e9e1; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; line-height: 1.25; }
.feature-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }

/* Media */
.section--media { background: linear-gradient(180deg, #061722, #030c12); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; grid-auto-rows: 230px; gap: 12px; }
.gallery-item { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(205, 171, 97, .14); background: #0a202b; cursor: zoom-in; }
button.gallery-item { appearance: none; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.1); transition: transform .7s var(--ease), filter .5s; }
.gallery-item:hover img { filter: saturate(1) contrast(1.05); transform: scale(1.045); }
.gallery-overlay { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; padding: 50px 20px 17px; text-align: left; background: linear-gradient(transparent, rgba(1,8,12,.9)); }
.gallery-overlay small { grid-column: 1; color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.gallery-overlay strong { grid-column: 1; font-family: var(--serif); font-size: .95rem; font-weight: 500; }
.gallery-overlay i { grid-column: 2; grid-row: 1 / 3; align-self: end; color: var(--gold-light); font-style: normal; }

/* FAQ */
.section--faq { background: #040f16; }
.faq-grid { display: grid; grid-template-columns: .65fr 1fr; align-items: start; gap: clamp(65px,10vw,145px); }
.faq-intro { position: sticky; top: calc(var(--header-height) + 40px); }
.faq-intro > p:not(.eyebrow) { max-width: 410px; color: var(--muted); }
.text-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 15px; color: var(--gold-light); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { transition: transform .3s; }
.text-link:hover span { transform: translateX(6px); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 25px; color: #e2e7e3; cursor: pointer; font-family: var(--serif); font-size: 1.1rem; list-style: none; transition: color .25s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover, .accordion details[open] summary { color: var(--gold-light); }
.accordion summary i { position: relative; width: 19px; height: 19px; flex: none; }
.accordion summary i::before, .accordion summary i::after { position: absolute; top: 9px; left: 2px; width: 15px; height: 1px; content: ""; background: currentColor; transition: transform .3s; }
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0); }
.accordion details p { max-width: 650px; margin: -4px 42px 28px 0; color: var(--muted); font-size: .87rem; }
.accordion details p a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.section--contact { padding: 95px 0 110px; background:
  linear-gradient(120deg, rgba(4,18,25,.91), rgba(3,10,15,.97)),
  url("../images/pirates-life-header.jpg") center/cover no-repeat;
}
.contact-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: clamp(34px,6vw,72px); border: 1px solid rgba(213,167,78,.2); background: rgba(6,23,31,.68); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.contact-copy > p:not(.eyebrow) { max-width: 510px; color: var(--muted); }
.contact-email { display: inline-flex; max-width: 100%; align-items: center; gap: 13px; margin-top: 20px; }
.contact-email small, .contact-email strong { display: block; }
.contact-email small { color: var(--muted); font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-email strong { color: var(--gold-light); font-size: .82rem; word-break: break-word; }
.social-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; color: var(--gold-light); border: 1px solid rgba(213,167,78,.3); }
.social-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.social-grid { display: grid; align-content: center; border-top: 1px solid var(--line); }
.social-grid > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease), color .3s; }
.social-grid > a:hover { padding-left: 9px; color: var(--gold-light); }
.social-grid small, .social-grid strong { display: block; }
.social-grid small { color: var(--muted); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.social-grid strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.social-grid > a > i { color: var(--gold); font-style: normal; }

/* Footer */
.site-footer { padding: 55px 0 24px; border-top: 1px solid rgba(213,167,78,.14); background: #02080c; }
.footer-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; padding-bottom: 38px; }
.footer-brand { width: 115px; }
.footer-brand img { width: 100%; aspect-ratio: 16/9; object-fit: contain; mix-blend-mode: screen; }
.footer-main p { margin: 0; color: var(--muted); font-size: .73rem; }
.footer-main nav { display: flex; gap: 25px; }
.footer-main nav a { color: #bbc8c8; font-size: .68rem; transition: color .25s; }
.footer-main nav a:hover { color: var(--gold-light); }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.055); color: #667a7d; font-size: .6rem; }

/* Multipage layout */
.inline-actions { display: flex; margin-top: 34px; flex-wrap: wrap; align-items: center; gap: 24px; }
.section--page-portals { border-top: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(17,71,88,.18), transparent 38rem), #041018; }
.page-portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.page-portal { position: relative; min-height: 330px; padding: 38px; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent); transition: background .3s, transform .3s var(--ease); }
.page-portal:last-child { border-right: 0; }
.page-portal:hover { z-index: 1; background: rgba(201,154,55,.075); transform: translateY(-5px); }
.page-portal > span { display: block; margin-bottom: 82px; color: var(--gold); font-size: .66rem; letter-spacing: .16em; word-spacing: .35em; }
.page-portal strong { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.page-portal p { max-width: 260px; margin: 0; color: var(--muted); font-size: .86rem; }
.page-portal i { position: absolute; right: 32px; bottom: 30px; color: var(--gold-light); font-size: 1.35rem; font-style: normal; transition: transform .25s; }
.page-portal:hover i { transform: translateX(5px); }
.page-cta { position: relative; overflow: hidden; padding: 105px 0; border-block: 1px solid var(--line); text-align: center; background: #06131d; }
.page-cta::before { position: absolute; inset: -60%; content: ""; background: radial-gradient(circle, rgba(201,154,55,.1), transparent 28%); pointer-events: none; }
.page-cta .container { position: relative; }
.page-cta h2 { max-width: 900px; margin: 0 auto 18px; }
.page-cta p:not(.eyebrow) { max-width: 620px; margin: 0 auto 30px; color: var(--muted); }

.inner-hero { position: relative; display: grid; min-height: 64svh; padding: calc(var(--header-height) + 90px) 0 85px; overflow: hidden; align-items: end; border-bottom: 1px solid var(--line); isolation: isolate; }
.inner-hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background-position: center; background-size: cover; transform: scale(1.02); }
.inner-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(2,11,17,.96) 0%, rgba(3,14,22,.76) 48%, rgba(3,14,22,.23)), linear-gradient(0deg, #041018 0%, transparent 58%); }
.inner-hero--about::before { background-image: url("../images/gameplay-island-exploration.jpg"); }
.inner-hero--features::before { background-image: url("../images/gameplay-naval-combat.jpg"); }
.inner-hero--media::before { background-image: url("../images/gameplay-underwater-swim.jpg"); }
.inner-hero--faq::before { background-image: url("../images/gameplay-treasure-dig.jpg"); }
.inner-hero--contact::before { background-image: url("../images/gameplay-island-outpost.jpg"); }
.inner-hero-content { max-width: 900px; }
.inner-hero h1 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(3.3rem, 7.5vw, 7.2rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.inner-hero h1 em { color: var(--gold-light); font-weight: 400; }
.inner-hero .lead { max-width: 680px; margin-bottom: 0; color: #d0dcda; }
.page-section { padding-top: 110px; }
.page-section > .container > .section-heading:first-child { margin-top: 0; }
.media-page .gallery { margin-top: 0; }

/* Lightbox */
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 0; border: 0; color: var(--cream); background: rgba(1,6,9,.94); }
.lightbox::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; animation: lightboxIn .25s ease; }
.lightbox figure { width: min(92vw, 1420px); margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 25px 80px rgba(0,0,0,.6); }
.lightbox figcaption { padding-top: 14px; color: var(--muted); text-align: center; font-family: var(--serif); }
.lightbox-close { position: fixed; z-index: 2; top: 20px; right: 25px; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 1px solid rgba(242,215,139,.4); border-radius: 50%; color: var(--cream); background: rgba(5,18,25,.7); cursor: pointer; font-family: var(--sans); font-size: 1.7rem; line-height: 1; transition: color .25s, border-color .25s, transform .25s; }
.lightbox-close:hover { color: var(--gold-light); border-color: var(--gold-light); transform: rotate(90deg); }

/* Legal pages */
.legal-page { background: linear-gradient(180deg, #061722, #03090e); }
.legal-hero { position: relative; display: grid; min-height: 410px; padding-top: var(--header-height); place-items: center; overflow: hidden; background:
  linear-gradient(rgba(2,12,18,.7), rgba(2,12,18,.95)),
  url("../images/pirates-life-hero.jpg") center/cover;
}
.legal-hero .container { position: relative; text-align: center; }
.legal-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem,6vw,5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.legal-content { max-width: 820px; padding-block: 85px 110px; }
.legal-content h2 { margin-top: 50px; margin-bottom: 14px; font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.1; }
.legal-content h3 { margin-top: 28px; font-family: var(--serif); font-weight: 500; }
.legal-content p, .legal-content li { color: var(--mist); }
.legal-content a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.legal-content .updated { margin-bottom: 40px; color: var(--gold); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

/* Scroll reveals (content remains visible when JavaScript is unavailable) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Keyframes */
@keyframes heroDrift { to { transform: scale(1.085) translate3d(-.6%, .5%, 0); } }
@keyframes fogFloat { from { transform: translate3d(-6%,0,0) scaleX(.92); } to { transform: translate3d(8%,2%,0) scaleX(1.05); } }
@keyframes rise { 0% { opacity: 0; transform: translate3d(0,0,0) scale(.5); } 12% { opacity: .35; } 80% { opacity: .16; } 100% { opacity: 0; transform: translate3d(var(--drift),-105vh,0) scale(1.2); } }
@keyframes scrollCue { from { transform: translateY(-120%); } to { transform: translateY(230%); } }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 1100px) {
  :root { --header-height: 70px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    z-index: 89;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    display: flex;
    width: min(390px, 100%);
    padding: 34px;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    overflow-y: auto;
    background: rgba(3,14,20,.98);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform .4s var(--ease);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 3px; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .02em; text-transform: none; }
  .nav-links a::after { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { margin-top: auto; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .journey-strip > i { margin-inline: 14px; }
}

@media (max-width: 800px) {
  .section { padding: 95px 0; }
  .scroll-cue { display: none; }
  .section-heading.split, .about-grid, .faq-grid, .contact-shell { grid-template-columns: 1fr; }
  .section-heading.split { gap: 8px; align-items: start; }
  .section-heading.split > p { max-width: 560px; }
  .about-grid { gap: 65px; }
  .about-visual { width: min(82%, 390px); margin: 0 auto; }
  .journey-strip { grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 85px; }
  .journey-strip > i { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: 275px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .faq-grid { gap: 45px; }
  .faq-intro { position: static; }
  .contact-shell { gap: 48px; }
  .page-portal-grid { grid-template-columns: 1fr; }
  .page-portal { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .page-portal:last-child { border-bottom: 0; }
  .page-portal > span { margin-bottom: 42px; }
  .inner-hero { min-height: 58svh; padding-bottom: 65px; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 78px 0; }
  .brand { width: 102px; }
  .hero { min-height: 720px; }
  .hero-image { background-position: 57% center; }
  .hero-content { padding-top: 42px; }
  .hero-logo {
    width: min(360px, 100%);
    height: auto;
    margin: 2px auto -8px;
  }
  .hero-tagline { margin-bottom: 34px; font-size: 1.1rem; line-height: 1.65; }
  .hero-tagline br { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .inline-actions { align-items: stretch; flex-direction: column; }
  .inline-actions .button, .inline-actions .text-link { width: 100%; justify-content: center; }
  .map-card { right: -4px; bottom: 24px; width: 170px; min-height: 64px; padding: 12px 15px; font-size: .78rem; }
  .map-card svg { width: 28px; }
  .journey-strip { grid-template-columns: 1fr; gap: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: auto; }
  .button--large { width: 100%; padding-inline: 15px; }
  .accordion summary { min-height: 72px; font-size: 1rem; }
  .contact-shell { width: min(calc(100% - 24px), var(--container)); padding: 30px 21px; }
  .contact-email { align-items: flex-start; }
  .contact-email strong { font-size: .72rem; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .footer-brand { margin: 0 auto; }
  .footer-main nav { justify-content: center; }
  .footer-legal { flex-direction: column; text-align: center; }
  .inner-hero { min-height: 66svh; padding-top: calc(var(--header-height) + 70px); }
  .inner-hero::before { background-position: 60% center; }
  .inner-hero h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .page-cta { padding: 80px 0; }
  .lightbox-close { top: 12px; right: 12px; }
}

@media (hover: none) {
  .gallery-overlay { padding-top: 35px; }
  .feature-card:hover { transform: none; }
}

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

@media (prefers-contrast: more) {
  :root { --muted: #c3d1d1; --line: rgba(242,215,139,.45); }
  .button--outline { background: #041019; }
}
