:root {
  --white: #f7f7df;
  --gold: #a68862;
  --gold-bright: #c3a47e;
  --line: rgba(166, 136, 98, 0.46);
  --muted: rgba(247, 247, 223, 0.66);
  --ink: #050e0f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
}

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

.cover {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

.choices {
  display: flex;
  width: 100%;
  height: 100%;
}

.choice {
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  outline: none;
  transition: flex-grow 1.15s var(--ease);
}

.choice::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  content: attr(data-cursor);
  color: rgba(247, 247, 223, 0.035);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(8rem, 15vw, 18rem);
  font-weight: 500;
  line-height: 0.7;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.8s ease, transform 1.2s var(--ease);
}

.choice--agency::before {
  left: -6%;
  transform: translate(-5%, -50%);
}

.choice--marine::before {
  right: -6%;
  transform: translate(5%, -50%);
}

.choice + .choice {
  border-left: 1px solid rgba(166, 136, 98, 0.26);
}

.choice__image,
.choice__veil {
  position: absolute;
  inset: 0;
}

.choice__image {
  z-index: -3;
  inset: -3%;
  background-position: center;
  background-size: cover;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.04);
  filter: saturate(0.64) contrast(1.08) brightness(0.8);
  transition: transform 1.4s var(--ease), filter 0.9s ease;
  will-change: transform;
}

.choice--agency .choice__image {
  background-image: url("assets/images/port-agency.webp");
  background-position: 43% center;
}

.choice--marine .choice__image {
  background-image: url("assets/images/marine-solutions.webp");
  background-position: 58% center;
}

.choice__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 12, 13, 0.64) 0%, rgba(4, 18, 20, 0.1) 38%, rgba(2, 11, 12, 0.72) 100%),
    linear-gradient(90deg, rgba(2, 14, 15, 0.36), rgba(4, 12, 19, 0.02));
  transition: background-color 0.8s ease;
}

.choice::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(2, 12, 13, 0.22);
  opacity: 1;
  transition: opacity 0.8s ease;
}

.choice__content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(78%, 580px);
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate(-50%, -46%);
}

.choice__eyebrow,
.choice__description,
.choice__action,
.topbar__meta,
.brand__tagline,
.footer {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.choice__eyebrow {
  margin-bottom: 2.1rem;
  color: var(--gold-bright);
  transition: color 0.6s ease;
}

.choice__rule {
  width: 30px;
  height: 1px;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--gold);
}

.choice__rule::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--gold-bright);
  transform: translateX(-105%);
  transition: transform 0.7s var(--ease);
}

.choice__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 6.3vw, 8.25rem);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.9s var(--ease);
}

.choice__description {
  margin-top: 2.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.choice__action {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 2.35rem;
  padding: 0.8rem 0;
}

.choice__action svg {
  width: 38px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 0.55s var(--ease);
}

.choices:has(.choice:hover) .choice:not(:hover),
.choices:has(.choice:focus-visible) .choice:not(:focus-visible) {
  flex-grow: 0.88;
}

.choice:hover,
.choice:focus-visible {
  flex-grow: 1.12;
}

.choice:hover .choice__image,
.choice:focus-visible .choice__image {
  filter: saturate(0.88) contrast(1.03) brightness(0.94);
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.08);
}

.choice:hover::after,
.choice:focus-visible::after {
  opacity: 0;
}

.choice:hover .choice__title,
.choice:focus-visible .choice__title {
  transform: translateY(-5px);
}

.choice:hover::before,
.choice:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.choice:hover .choice__rule::after,
.choice:focus-visible .choice__rule::after {
  transform: translateX(0);
}

.choice:hover .choice__action svg,
.choice:focus-visible .choice__action svg {
  transform: translateX(6px);
}

.choice:focus-visible {
  box-shadow: inset 0 0 0 2px var(--white);
}

.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 1.9rem 3rem;
  pointer-events: none;
}

.topbar__meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.topbar__meta span {
  color: var(--gold-bright);
}

.topbar__meta--right {
  text-align: right;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.brand img {
  display: block;
  width: clamp(190px, 15vw, 230px);
  height: auto;
  filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.34));
  transition: filter 0.6s ease, transform 0.6s var(--ease);
}

.brand:hover img,
.brand:focus-visible img {
  filter: drop-shadow(0 5px 24px rgba(166, 136, 98, 0.28));
  transform: translateY(-2px);
}

.compass {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.compass__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(transparent, var(--line));
}

.compass__line--bottom {
  background: linear-gradient(var(--line), transparent);
}

.compass__dial {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(166, 136, 98, 0.58);
  border-radius: 50%;
  place-items: center;
  background: rgba(5, 14, 15, 0.54);
  box-shadow: 0 0 38px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.compass__dial::after {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(166, 136, 98, 0.24);
  border-radius: inherit;
  content: "";
}

.compass__dial img {
  z-index: 2;
  width: 31px;
  height: auto;
}

.compass__ticks {
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(166, 136, 98, 0.42);
  border-radius: 50%;
  animation: compass-turn 24s linear infinite;
}

.compass__sweep {
  position: absolute;
  inset: 7px;
  overflow: hidden;
  border-radius: 50%;
  animation: compass-turn 6s linear infinite;
}

.compass__sweep::before {
  position: absolute;
  inset: 0;
  content: "";
  background: conic-gradient(from 12deg, transparent 0deg, transparent 315deg, rgba(166, 136, 98, 0.3) 359deg);
}

.footer {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.8rem 3rem;
  color: var(--muted);
  pointer-events: none;
}

.footer__prompt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white);
}

.footer__prompt i {
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.footer__status {
  text-align: right;
}

.footer__status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(195, 164, 126, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  grid-template-rows: auto auto auto;
  align-content: center;
  background:
    radial-gradient(circle at center, rgba(32, 55, 54, 0.45), transparent 30%),
    #050e0f;
  transition: visibility 0s 1s, opacity 1s var(--ease);
}

.intro__mark {
  width: 72px;
  height: auto;
  margin: 0 auto;
  opacity: 0;
  animation: mark-in 1.1s 0.1s var(--ease) forwards;
}

.intro__text {
  margin: 1.2rem 0 1.45rem;
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  animation: mark-in 1s 0.3s var(--ease) forwards;
}

.intro__track {
  display: block;
  width: 150px;
  height: 1px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(166, 136, 98, 0.2);
}

.intro__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: load-track 1.25s 0.15s var(--ease) forwards;
}

body.is-ready .intro {
  visibility: hidden;
  opacity: 0;
}

body:not(.is-ready) .cover {
  transform: scale(1.03);
}

.cover {
  transition: transform 1.5s var(--ease);
}

.chart,
.ocean-light {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.chart__map {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: min(52vw, 760px);
  opacity: 0.045;
  filter: sepia(0.45) saturate(0.55);
  transform: translate(-50%, 18px);
  transition: opacity 1s ease, transform 1.6s var(--ease);
}

body.is-ready .chart__map {
  opacity: 0.075;
  transform: translate(-50%, 0);
}

.ocean-light {
  z-index: 3;
  opacity: 0.24;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(166, 136, 98, 0.16), transparent 28%),
    radial-gradient(ellipse at 74% 65%, rgba(82, 139, 137, 0.13), transparent 25%);
  mix-blend-mode: screen;
  transform: scale(1.08);
  animation: ocean-light 13s ease-in-out infinite alternate;
}

.choice__content {
  z-index: 4;
}

.cursor {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.has-fine-pointer,
.has-fine-pointer a {
  cursor: none;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor__ring,
.cursor__dot,
.cursor__label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  will-change: transform;
}

.cursor__ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(195, 164, 126, 0.7);
  border-radius: 50%;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s ease;
}

.cursor__dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.cursor__label {
  margin: 16px 0 0 22px;
  color: var(--white);
  font-size: 0.49rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-active .cursor__ring {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  background: rgba(166, 136, 98, 0.1);
}

.cursor.is-active .cursor__label {
  opacity: 1;
}

@keyframes ocean-light {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.08) rotate(-1deg); }
  50% { opacity: 0.36; }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.14) rotate(1deg); }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes load-track {
  to { transform: translateX(0); }
}

@keyframes compass-turn {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% {
    opacity: 0.38;
  }
}

@media (max-width: 880px) {
  body {
    overflow: auto;
  }

  .cover {
    height: auto;
    min-height: 100svh;
  }

  .choices {
    min-height: 100svh;
    flex-direction: column;
  }

  .choice {
    min-height: 50svh;
  }

  .choice + .choice {
    border-top: 1px solid rgba(166, 136, 98, 0.26);
    border-left: 0;
  }

  .choice::before {
    display: none;
  }

  .choice__content {
    width: 82%;
    transform: translate(-50%, -43%);
  }

  .choice__title {
    font-size: clamp(3.4rem, 14vw, 5rem);
    line-height: 0.78;
  }

  .choice__eyebrow,
  .choice__rule,
  .choice__description {
    display: none;
  }

  .choice__action {
    margin-top: 1.45rem;
  }

  .choice--agency .choice__image {
    background-position: 45% 66%;
  }

  .choice--marine .choice__image {
    background-position: 54% 64%;
  }

  .choices:has(.choice:hover) .choice:not(:hover),
  .choices:has(.choice:focus-visible) .choice:not(:focus-visible),
  .choice:hover,
  .choice:focus-visible {
    flex-grow: 1;
  }

  .topbar {
    position: fixed;
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .topbar__meta {
    display: none;
  }

  .brand img {
    width: 180px;
  }

  .compass {
    position: absolute;
  }

  .compass__line {
    display: none;
  }

  .compass__dial {
    width: 52px;
    height: 52px;
    background: rgba(5, 14, 15, 0.74);
  }

  .compass__dial::after {
    width: 36px;
    height: 36px;
  }

  .compass__dial img {
    width: 22px;
  }

  .chart__map {
    bottom: 31%;
    width: 110vw;
    opacity: 0.035;
  }

  .cursor {
    display: none;
  }

  .footer {
    display: none;
  }
}

@media (max-height: 750px) and (min-width: 881px) {
  .choice__content {
    transform: translate(-50%, -44%);
  }

  .choice__eyebrow {
    margin-bottom: 1.3rem;
  }

  .choice__rule {
    margin-bottom: 1.25rem;
  }

  .choice__description,
  .choice__action {
    margin-top: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
