:root {
  --ink: #2a1708;
  --red: #6b1d12;
  --gold: #c4a36b;
  --paper: #d9b879;
  --paper-light: #f1d89e;
  --paper-dark: #8a5a25;
}

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

body {
/*  cursor: url("cursor.png"), auto; */
}

button,
a {
  cursor: pointer;
}

body {
  min-height: 100vh;
  font-family: Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.3), transparent 25%, transparent 75%, rgba(0,0,0,.35)),
    repeating-linear-gradient(90deg, #25160c 0, #25160c 18px, #1b1009 19px, #2d1a0e 38px);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.intro {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 34px;
  transition: .7s ease;
}

.closed-scroll {
  width: min(520px, 84vw);
  height: 120px;
  border-radius: 80px;
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35), transparent 18%),
    linear-gradient(#d8b276, #8a5727 50%, #c69250);
  border: 3px solid rgba(60, 31, 10, .8);
  filter: drop-shadow(0 30px 35px rgba(0,0,0,.45));
}

.seal {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #9d3825, #58160e);
  display: grid;
  place-items: center;
  color: #d8b982;
  font-size: 36px;
}

.open-btn {
  background: none;
  border: none;
  color: #ead2a6;
  font-family: Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
   font-size: 26px;
}

.open-btn i {
  display: block;
  margin-top: 12px;
  animation: bounce 1.3s infinite;
}

@keyframes bounce {
  50% {
    transform: translateY(8px);
  }
}

.map-stage {
/*  display: none; */
  min-height: 100vh;
  padding: 42px 20px;
}

body.open .intro {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

body.open .map-stage {
  display: block;
}

.parchment {
  width: min(1180px, 96vw);
  min-height: 900px;
  margin: 0 auto;
  padding: 54px clamp(34px, 6vw, 86px) 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 24%, rgba(83, 44, 13, .18), transparent 16%),
    radial-gradient(circle at 80% 65%, rgba(80, 38, 8, .16), transparent 18%),
    linear-gradient(135deg, var(--paper-light), var(--paper) 48%, #c99a55);
  box-shadow:
    inset 0 0 90px rgba(65, 32, 6, .45),
    0 34px 70px rgba(0,0,0,.55);
  clip-path: polygon(
    2% 4%, 8% 2%, 16% 4%, 24% 2%, 34% 4%, 42% 2%, 52% 4%, 61% 2%,
    70% 4%, 79% 2%, 88% 4%, 98% 2%, 96% 12%, 98% 21%, 96% 32%,
    98% 43%, 96% 54%, 98% 64%, 96% 74%, 98% 86%, 95% 97%, 84% 95%,
    74% 98%, 63% 95%, 52% 98%, 42% 95%, 31% 98%, 21% 95%, 10% 98%,
    2% 95%, 4% 84%, 2% 74%, 4% 63%, 2% 52%, 4% 42%, 2% 31%, 4% 21%
  );
  animation: unfold 1.1s cubic-bezier(.18,.9,.3,1) both;
}

@keyframes unfold {
  0% {
    transform: scaleX(.08);
    opacity: 0;
  }

  45% {
    transform: scaleX(1.04);
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
  }
}

.parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(70,35,8,.16) 1px, transparent 1px),
    linear-gradient(rgba(60,30,8,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,30,8,.04) 1px, transparent 1px);
  background-size: 18px 18px, 46px 46px, 46px 46px;
  opacity: .35;
  pointer-events: none;
  z-index: -1;
}

.parchment::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(67, 35, 10, .18);
  pointer-events: none;
}

.map-nav,
.secret-header,
.notes,
.treasures,
.back-btn {
  position: relative;
  z-index: 3;
}

.map-nav {
  width: min(860px, 88%);
  margin: 50px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand i {
  font-size: 34px;
}

.brand span {
  font-size: 20px;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
}

.map-nav div {
  display: flex;
  gap: 30px;
}

.map-drawing {
  position: absolute;
  z-index: 1;
  color: rgba(42, 23, 8, .05);
  pointer-events: none;
}

.compass {
  right: 10%;
  top: 16%;
  font-size: 120px;
  animation: slowSpin 18s linear infinite;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.mountains {
  left: 12%;
  top: 22%;
  font-size: 96px;
  letter-spacing: -20px;
  transform: rotate(-8deg);
}

.ship {
  right: 17%;
  bottom: 44%;
  font-size: 70px;
  transform: rotate(-18deg);
  animation: floatShip 4s ease-in-out infinite;
}

@keyframes floatShip {
  50% {
    transform: translateY(-8px) rotate(-15deg);
  }
}

.island {
  left: 10%;
  bottom: 18%;
  width: 220px;
  height: 120px;
  border: 3px solid rgba(42,23,8,.05);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.route {
  position: absolute;
  inset: 251px 110px auto;
  height: 430px;
  z-index: 1;
  pointer-events: none;
}

.route path {
  fill: none;
  stroke: rgba(42,23,8,.18);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 14 20;
  animation: drawRoute 5s ease forwards;
}

@keyframes drawRoute {
  from {
    stroke-dashoffset: 900;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.secret-profile {
  max-width: 980px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 58px;
  align-items: start;
  text-align: left;
}

.file-card {
  padding: 18px;
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(90,45,12,.08)),
    rgba(226, 188, 121, .88);
  border: 2px solid rgba(83, 44, 13, .55);
  box-shadow: 0 18px 26px rgba(70,35,8,.22);
  text-align: center;
  transform: rotate(-2deg) translateY(12px);
}

.file-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 14px;
}

.file-photo {
  height: 280px;
  overflow: hidden;
  border: 2px solid rgba(42,23,8,.55);
  background: rgba(42,23,8,.12);
  margin-bottom: 16px;
}

.file-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  filter: sepia(.9) contrast(1.05) saturate(.55);
}

.file-name {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.file-status {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(42,23,8,.35);
  text-transform: uppercase;
}

.file-status span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.file-status strong {
  font-size: 15px;
  letter-spacing: 2px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-style: italic;
  margin-bottom: 24px;
}

.secret-copy {
  padding-top: 28px;
}

.secret-copy h1 {
  font-size: clamp(38px, 4.9vw, 60px);
  line-height: 1.03;
}

.ornament {
  font-size: 28px;
  margin: 24px 0;
}

.secret-copy h2 {
  text-transform: uppercase;
  letter-spacing: 7px;
  font-size: 18px;
  margin-bottom: 22px;
}

.secret-copy p:last-child {
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.notes {
  margin: 74px auto 0;
  width: min(900px, 88%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.note {
  min-height: 230px;
  padding: 26px 20px;
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(90,45,12,.06)),
    rgba(226, 188, 121, .92);
  border: 1px solid rgba(83, 44, 13, .45);
  box-shadow: 0 18px 24px rgba(70,35,8,.18);
  text-align: center;
}

.note:nth-child(1) {
  transform: rotate(-1.4deg);
}

.note:nth-child(2) {
  transform: rotate(1deg);
}

.note:nth-child(3) {
  transform: rotate(-.7deg);
}

.note:nth-child(4) {
  transform: rotate(1.3deg);
}

.note i {
  font-size: 38px;
  margin-bottom: 18px;
  display: inline-block;
}

.note h3 {
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 16px;
}

.note p,
.note li {
  font-size: 15px;
  line-height: 1.55;
}

.note ul {
  text-align: left;
  padding-left: 18px;
}

.treasures {
  margin-top: 42px;
  text-align: center;
}

.treasures p {
  text-transform: uppercase;
  letter-spacing: 7px;
  font-weight: 700;
  margin-bottom: 22px;
}

.treasures div {
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.treasures span {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.treasures i {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.back-btn {
  width: fit-content;
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  color: #f4d9a2;
  padding: 15px 34px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid #b98245;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .map-nav,
  .map-nav div {
    flex-direction: column;
    align-items: flex-start;
  }

  .secret-profile {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .file-card {
    width: min(280px, 100%);
  }

  .notes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .map-stage {
    padding: 20px 10px;
  }

  .parchment {
    min-height: auto;
    padding: 38px 24px 46px;
  }

  .secret-profile {
    margin-top: 64px;
  }

  .secret-copy h1 {
    font-size: 40px;
  }

  .notes {
    grid-template-columns: 1fr;
  }

  .route,
  .map-drawing {
    opacity: .1;
  }
}





.secret-offer {
  position: relative;
  z-index: 3;
  width: min(760px, 88%);
  margin: 72px auto 0;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(90,45,12,.06)),
    rgba(226, 188, 121, .92);
  border: 2px solid rgba(83, 44, 13, .45);
  box-shadow: 0 18px 26px rgba(70,35,8,.2);
  transform: rotate(-.6deg);
}

.offer-label {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.secret-offer h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.secret-offer > p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.secret-contact {
  margin: 26px auto 20px;
  padding: 18px 22px;
  width: fit-content;
  border-top: 1px solid rgba(42,23,8,.35);
  border-bottom: 1px solid rgba(42,23,8,.35);
}

.secret-contact span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  margin-bottom: 6px;
}

.secret-contact strong {
  font-size: 24px;
  letter-spacing: 1px;
}

.secret-copy-btn {
  border: none;
  background: var(--red);
  color: #f4d9a2;
  padding: 14px 26px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.secret-copy-btn:hover {
  filter: brightness(1.15);
}

.secret-offer small {
  display: block;
  font-style: italic;
  opacity: .75;
}



::selection {
  background: var(--red);
  color: white;
}

.mobile-nav {
  display: none;
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .map-stage {
    padding: 0;
  }

  .parchment {
    width: 100%;
    min-height: auto;
    padding: 34px 22px 48px;
    clip-path: none;
    border-radius: 0;
  }

  .parchment::after {
    inset: 12px;
  }

  .map-nav {
    width: 100%;
    margin: 20px auto 44px;
    align-items: center;
    text-align: center;
  }


  .map-nav div {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin: 22px 0 54px;
    position: relative;
    z-index: 3;
  }

  .mobile-nav a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(42,23,8,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    font-size: 22px;
    transition: .25s;
  }

  .mobile-nav a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.35);
  }

  


  .brand {
    justify-content: center;
  }

  .secret-profile {
    margin-top: 36px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .file-card {
    width: min(300px, 100%);
    margin: 0 auto;
    transform: rotate(-1deg);
  }

  .file-photo {
    height: 260px;
  }

  .secret-copy {
    padding-top: 0;
    text-align: center;
  }

  .secret-copy h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
    word-break: normal;
    hyphens: auto;
  }

  .kicker {
    font-size: 13px;
    line-height: 1.5;
  }

  .secret-copy h2 {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .secret-copy p:last-child {
    font-size: 19px;
  }

  .notes {
    width: 100%;
    margin-top: 54px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .note {
    min-height: auto;
    transform: none !important;
  }

  .secret-offer {
    width: 100%;
    margin-top: 54px;
    padding: 28px 22px;
    transform: none;
  }

  .secret-offer h2 {
    font-size: 32px;
  }

  .secret-offer > p {
    font-size: 18px;
  }

  .secret-contact {
    width: 100%;
  }

  .secret-contact strong {
    font-size: clamp(24px, 6vw, 34px);
    overflow-wrap: anywhere;
  }

  .secret-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .back-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 15px 18px;
  }

  .route,
  .map-drawing {
    opacity: .08;
  }



}


