:root {
  --shell: #F7F2EA;
  --sand: #E6D9C4;
  --light-green: #BCC7C2;
  --med-green: #2E493F;
  --lagoon: #273f42;
  --lagoon-official: #1F3B3A;
  --guilded-hour: #C2894B;
  --dusk: #C98A7A;
  --image-mobile-height: 110vh;
  --image-height: 140vh;
  --padding: 15px;
  --heading-1-size-value: 2.5;
  --heading-2-size-value: 5;
  --p-size-value: 1.5;
}

.color-shell {
  color: var(--shell);
}

.bg-shell {
  background-color: var(--shell);
}

.color-sand {
  color: var(--sand);
}

.bg-sand {
  background-color: var(--sand);
}

.color-light-green {
  color: var(--light-green);
}

.bg-light-green {
  background-color: var(--light-green);
}

.color-med-green {
  color: var(--med-green);
}

.bg-med-green {
  background-color: var(--med-green);
}

.color-lagoon {
  color: var(--lagoon);
}

.bg-lagoon {
  background-color: var(--lagoon);
}

.color-lagoon-official {
  color: var(--lagoon-official);
}

.bg-lagoon-official {
  background-color: var(--lagoon-official);
}

.color-guilded-hour {
  color: var(--guilded-hour);
}

.bg-guilded-hour {
  background-color: var(--guilded-hour);
}

.color-dusk {
  color: var(--dusk);
}

.bg-dusk {
  background-color: var(--dusk);
}

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

html, body {
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-family: "Jost", serif;
  font-weight: 300;
  background-color: var(--color-lagoon);
}

.container {
  width: calc(100% - 30px);
  max-width: 1440px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", serif;
  margin: 0;
}

h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(18px, (var(--heading-1-size-value) - 1) * 1.2vw + 1.2rem, 60px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(24px, (var(--heading-2-size-value) - 1) * 1.2vw + 1rem, 80px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

p {
  line-height: 1.5;
  font-size: clamp(16px, 0.7vw + 10px, 24px);
  margin: 22.5px 0 0 0;
}

.text-center {
  text-align: center;
}

main {
  position: relative;
  z-index: 3;
}

footer {
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@keyframes logo-drift {
  0% {
    transform: translateX(-7px);
  }
  70.59% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(-7px);
  }
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* Background video — always full-screen, never scales */
  /*
      * Logo container covers the FULL section (inset: 0) so the green
      * overlay inside can block the video everywhere, not just within
      * the O image's narrower bounds.
      *
      * solmere-o.png is 1970×1500 (aspect 1.3133). At 100vh height it
      * is only ~131vh wide — narrower than most viewports — so the old
      * approach of sizing the container to the image left gaps.
      *
      * Scale from viewport center (50% 50%) = O center, since the O
      * image is centered inside the full-section container.
      */
  /*
      * Dark green overlay — covers the FULL section.
      * o-mask.png is centered and sized to match the O image so the
      * hole aligns with the visible O. mask-composite: subtract punches
      * that hole: green everywhere EXCEPT where o-mask.png is white
      * (the O interior), letting the background video show through.
      *
      * As the container scales up, the overlay scales with it. The O
      * hole grows until the green portions are entirely outside the
      * viewport, leaving the full video exposed.
      */
  /* Settled logo — always flex-centered, invisible until expansion ends */
}
.hero h1 {
  font-style: italic;
  margin-top: 15px;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.hero h1.visible {
  opacity: 1;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero .hero-bg video,
.hero .hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  border: none;
  pointer-events: none;
}
.hero .hero-bg .hero-bg-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero .hero-bg .hero-bg-poster.loaded {
  opacity: 0;
}
.hero .hero-logo-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 4s ease-in-out;
}
.hero .hero-logo-container.expanding {
  transform: scale(4);
}
.hero .hero-logo-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(1.3133 * var(--image-mobile-height));
  height: var(--image-mobile-height);
  z-index: 2;
}
@media only screen and (min-width: 768px) {
  .hero .hero-logo-container img {
    width: calc(1.3133 * var(--image-height));
    height: var(--image-height);
  }
}
.hero .hero-green-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--lagoon);
  mask-image: url(../images/o-mask.png), linear-gradient(white, white);
  mask-composite: subtract, add;
  mask-size: calc(1.3133 * var(--image-mobile-height)) var(--image-mobile-height), 100% 100%;
  mask-position: center, 0 0;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-image: url(../images/o-mask.png), linear-gradient(white, white);
  -webkit-mask-composite: destination-out, source-over;
  -webkit-mask-size: calc(1.3133 * var(--image-mobile-height)) var(--image-mobile-height), 100% 100%;
  -webkit-mask-position: center, 0 0;
  -webkit-mask-repeat: no-repeat, no-repeat;
}
@media only screen and (min-width: 768px) {
  .hero .hero-green-overlay {
    mask-size: calc(1.3133 * var(--image-height)) var(--image-height), 100% 100%;
    -webkit-mask-size: calc(1.3133 * var(--image-height)) var(--image-height), 100% 100%;
  }
}
.hero .hero-logo-settled {
  position: relative;
  z-index: 3;
  width: min(60vw, 650px);
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
@media only screen and (min-width: 768px) {
  .hero .hero-logo-settled {
    animation: logo-drift 34s ease-in-out infinite;
  }
}
.hero .hero-logo-settled.visible {
  opacity: 1;
}
.hero .hero-logo-settled img {
  width: 100%;
  display: block;
}
.hero .badge {
  position: absolute;
  right: 0;
  top: 10%;
  z-index: 10;
  width: 150px;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
@media only screen and (min-width: 768px) {
  .hero .badge {
    bottom: 10%;
    top: auto;
  }
}
.hero .badge.visible {
  opacity: 1;
}
.hero .badge img {
  width: 100%;
  height: auto;
}
.hero .alt-tagline {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.hero .alt-tagline.visible {
  opacity: 1;
}
.hero .alt-tagline p {
  color: #F7F2EA;
  font-family: "Instrument Serif", serif;
  font-size: clamp(16px, (var(--heading-1-size-value) - 1) * 1vw + 1rem, 24px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}
@media only screen and (min-width: 768px) {
  .hero .alt-tagline {
    bottom: 90px;
  }
}

@keyframes nav-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  4% {
    transform: translateY(-10px);
  }
  8% {
    transform: translateY(0);
  }
  12% {
    transform: translateY(-6px);
  }
  16% {
    transform: translateY(0);
  }
}
.scroll-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 1.2s ease-out;
  cursor: pointer;
  padding: 8px;
}
.scroll-arrow.visible {
  opacity: 1;
}
.scroll-arrow svg {
  display: block;
  width: 48px;
  height: 48px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  animation: nav-bounce 4s ease infinite;
}

.btn-wrapper {
  margin: calc(var(--padding) * 3) auto var(--padding);
}

.btn {
  background: var(--sand);
  display: inline-block;
  padding: 16px 48px;
  color: var(--lagoon);
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
}
.btn:hover {
  background: var(--shell);
}

/* STICKY SCROLL SECTION */
.sticky-scroll-section {
  background-color: var(--color-sand);
  color: var(--color-lagoon);
  overflow-x: clip;
}
@media only screen and (min-width: 768px) {
  .sticky-scroll-section {
    position: relative;
  }
  .sticky-scroll-section::after {
    content: none;
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--guilded-hour), transparent);
    pointer-events: none;
    z-index: 1;
  }
}

/* Mobile: stacked layout */
.sticky-track {
  display: none;
}
@media only screen and (min-width: 768px) {
  .sticky-track {
    display: flex;
    align-items: flex-start;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
  }
  .sticky-track::after {
    content: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 75px;
    background: linear-gradient(to bottom, transparent, var(--guilded-hour));
    pointer-events: none;
  }
}

.sticky-mobile-item {
  padding: calc(var(--padding) * 3) 0 0;
  color: var(--med-green);
}
.sticky-mobile-item img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}
.sticky-mobile-item > div {
  padding: var(--padding) 0 calc(var(--padding) * 2);
}
.sticky-mobile-item:last-child {
  color: var(--shell);
  position: relative;
  padding-bottom: 75px;
}
.sticky-mobile-item:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -15px;
  right: -15px;
  height: 75px;
  background: linear-gradient(to bottom, transparent, var(--lagoon-official));
  pointer-events: none;
}

@media only screen and (min-width: 768px) {
  .sticky-mobile {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .sticky-images {
    flex: 0 0 50%;
  }
}

@media only screen and (min-width: 768px) {
  .sticky-img {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sticky-img img {
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
  }
}
@media only screen and (min-width: 768px) and (min-width: 768px) {
  .sticky-img img {
    width: 90%;
  }
}

@media only screen and (min-width: 768px) {
  .sticky-copy {
    flex: 0 0 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  .sticky-copy p {
    text-align: justify;
  }
}
@media only screen and (min-width: 768px) {
  .sticky-copy-inner {
    display: grid;
    grid-template-areas: "s";
    align-items: center;
    width: 100%;
  }
}

.sticky-pane h2 {
  position: relative;
  margin-bottom: 50px;
}
.sticky-pane h2::after {
  content: "";
  height: 3px;
  width: 20%;
  background: #C2894B;
  position: absolute;
  bottom: calc(-15px * 2);
  left: 30px;
}
@media only screen and (min-width: 1025px) {
  .sticky-pane h2::after {
    left: 15px;
  }
}
@media only screen and (min-width: 1440px) {
  .sticky-pane h2::after {
    left: 45px;
  }
}
@media only screen and (min-width: 768px) {
  .sticky-pane {
    grid-area: s;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .sticky-pane.active {
    opacity: 1;
  }
  .sticky-pane h2,
  .sticky-pane p {
    padding: 0 30px;
  }
}
@media only screen and (min-width: 1025px) {
  .sticky-pane h2,
  .sticky-pane p {
    padding: 0 45px 0 15px;
  }
}
@media only screen and (min-width: 1440px) {
  .sticky-pane h2,
  .sticky-pane p {
    padding: 0 90px 0 45px;
  }
}

footer {
  text-align: center;
  padding: calc(var(--padding) * 3) 0 calc(var(--padding) * 4);
  background: #C2894B;
  color: var(--beige);
}
footer p {
  margin-bottom: 0;
  color: var(--sand);
}
footer p a {
  color: var(--sand);
  text-decoration: none;
}
footer img {
  display: block;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: calc(var(--padding) * 2);
}
@media only screen and (min-width: 1025px) {
  footer img {
    margin-left: 0;
  }
}
footer .badge {
  margin: 0 auto 37.5px;
  width: 150px;
}
footer .badge img {
  width: 100%;
  height: auto;
}
@media only screen and (min-width: 768px) {
  footer .badge {
    margin: 0;
    position: absolute;
    right: 0;
    top: 37.5px;
  }
}
@media only screen and (min-width: 1025px) {
  footer .badge {
    top: 45px;
  }
}
footer .logos {
  margin-top: 45px;
}
footer .logos img {
  margin-bottom: 0;
}
@media only screen and (min-width: 1025px) {
  footer .logos {
    padding-left: 15px;
  }
}
@media only screen and (min-width: 768px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: calc(var(--padding) * 10) 0 calc(var(--padding));
  }
}
