@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/baloo-2-latin.woff2?v=1") format("woff2");
}

@font-face {
  font-family: "Luckiest Guy";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/luckiest-guy-latin.woff2?v=1") format("woff2");
}

:root {
  --ink: #221630;
  --paper: #f6efe2;
  --purple: #664689;
  --purple-deep: #4a3169;
  --purple-dark: #37244f;
  --lilac: #b79ddb;
  --coral: #e57a70;
  --yellow: #f3cf65;
  color: var(--paper);
  background: var(--ink);
  font-family: "Baloo 2", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

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

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

.landing-page {
  overflow: hidden;
  background: var(--ink);
}

.landing-main-site {
  position: fixed;
  z-index: 20;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  padding: 10px 15px 8px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.landing-main-site:hover,
.landing-main-site:focus-visible {
  transform: translate(-50%, -2px) rotate(1deg);
  background: var(--yellow);
}

.split-gate {
  position: relative;
  display: flex;
  min-height: 100svh;
}

.gate {
  position: relative;
  display: flex;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  border: 0 solid var(--ink);
  isolation: isolate;
  transition: flex .55s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.gate:first-child {
  border-right-width: 3px;
}

.gate:focus-visible {
  z-index: 4;
  outline: 5px solid var(--paper);
  outline-offset: -8px;
}

.split-gate:has(.gate:hover) .gate:not(:hover),
.split-gate:has(.gate:focus-visible) .gate:not(:focus-visible) {
  filter: saturate(.72) brightness(.7);
}

.gate:hover,
.gate:focus-visible {
  flex-grow: 1.28;
}

.gate-whales {
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 239, 226, .16) 0 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(145deg, var(--purple), var(--purple-deep));
}

.gate-health {
  background:
    radial-gradient(circle at 84% 20%, rgba(183, 157, 219, .18) 0 2px, transparent 3px) 0 0 / 42px 42px,
    linear-gradient(150deg, #2f203f, var(--ink));
}

.gate-noise {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background:
    repeating-linear-gradient(13deg, transparent 0 7px, rgba(255, 255, 255, .025) 8px 9px),
    repeating-linear-gradient(97deg, transparent 0 12px, rgba(0, 0, 0, .04) 13px 14px);
  pointer-events: none;
}

.gate-kicker {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 38px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.gate-health .gate-kicker {
  color: var(--lilac);
}

.gate-copy {
  position: relative;
  z-index: 4;
  align-self: flex-end;
  width: min(590px, calc(100% - 76px));
  margin: 0 38px 62px;
}

.gate-number {
  display: block;
  width: max-content;
  margin-bottom: 16px;
  padding: 4px 9px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--coral);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}

.gate-health .gate-number {
  background: var(--lilac);
  transform: rotate(3deg);
}

.gate-copy strong {
  display: block;
  font-family: "Luckiest Guy", Impact, sans-serif;
  font-size: clamp(66px, 7.2vw, 126px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .75;
  text-shadow: 5px 6px 0 var(--ink);
  transition: transform .45s ease;
}

.gate:hover .gate-copy strong,
.gate:focus-visible .gate-copy strong {
  transform: translateY(-5px) rotate(-1deg);
}

.gate-health .gate-copy strong {
  color: var(--coral);
}

.gate-copy small {
  display: block;
  max-width: 420px;
  margin-top: 24px;
  color: #e6d9ef;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.gate-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 10px 13px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  box-shadow: 4px 5px 0 var(--ink);
}

.gate-health .gate-button {
  background: var(--coral);
}

.gate-button b {
  font-size: 17px;
  transition: transform .2s ease;
}

.gate:hover .gate-button b,
.gate:focus-visible .gate-button b {
  transform: translate(3px, -3px);
}

.gate-rako {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: -5%;
  display: block;
  width: min(62vw, 690px);
  max-width: 88%;
  filter: drop-shadow(12px 15px 0 rgba(34, 22, 48, .85));
  transform: rotate(4deg);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.gate-rako-image {
  display: block;
  width: 100%;
  height: auto;
}

.gate:hover .gate-rako,
.gate:focus-visible .gate-rako {
  transform: translateX(-3%) rotate(1deg) scale(1.04);
}

.health-photo {
  position: absolute;
  z-index: 1;
  top: 11%;
  right: -12%;
  width: min(48vw, 680px);
  padding: 8px 8px 38px;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 9px 11px 0 var(--ink);
  transform: rotate(-6deg);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.health-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.gate:hover .health-photo,
.gate:focus-visible .health-photo {
  transform: translateX(-8%) rotate(-2deg) scale(1.03);
}

.gate-tag {
  position: absolute;
  z-index: 5;
  right: 25px;
  bottom: 25px;
  padding: 6px 9px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--lilac);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg);
}

.gate-health .gate-tag {
  background: var(--paper);
  transform: rotate(-3deg);
}

.center-mark {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  padding-top: 33px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 5px 6px 0 var(--ink);
  font-family: "Luckiest Guy", Impact, sans-serif;
  font-size: 13px;
  line-height: .9;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-5deg);
  pointer-events: none;
}

.center-mark img {
  position: absolute;
  top: -23px;
  width: 76px;
  height: auto;
  filter: drop-shadow(2px 3px 0 var(--ink));
}

.landing-footer {
  position: fixed;
  z-index: 12;
  right: 24px;
  bottom: 13px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(246, 239, 226, .68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  pointer-events: none;
}

.landing-footer a {
  pointer-events: auto;
}

.landing-footer > span:last-child {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(34, 22, 48, .72);
}

@media (min-width: 681px) {
  .gate-health .gate-kicker {
    right: 38px;
    left: auto;
    text-align: right;
  }

  .gate-tag {
    bottom: 48px;
  }
}

@media (max-width: 900px) {
  .gate-rako {
    top: 14%;
    opacity: .86;
  }

  .health-photo {
    top: 18%;
    opacity: .75;
  }

  .gate-copy {
    width: calc(100% - 44px);
    margin: 0 22px 62px;
  }

  .gate-kicker {
    top: 25px;
    left: 22px;
  }

  .gate-copy strong {
    font-size: clamp(55px, 10vw, 92px);
  }

  .gate-copy small {
    font-size: 14px;
  }

  .landing-main-site {
    top: max(9px, env(safe-area-inset-top));
    padding: 8px 11px 6px;
    font-size: 10px;
  }
}

@media (max-width: 680px) {
  .landing-page {
    overflow: auto;
  }

  .split-gate {
    flex-direction: column;
  }

  .gate {
    flex: 0 0 max(50svh, 400px);
    min-height: 400px;
    border: 0;
  }

  .gate:first-child {
    border-right-width: 0;
    border-bottom: 3px solid var(--ink);
  }

  .split-gate:has(.gate:hover) .gate:not(:hover),
  .split-gate:has(.gate:focus-visible) .gate:not(:focus-visible) {
    filter: none;
  }

  .gate:hover,
  .gate:focus-visible {
    flex-grow: 0;
  }

  .gate-copy {
    width: calc(100% - 36px);
    margin: 0 18px 22px;
  }

  .gate-copy strong {
    font-size: clamp(50px, 15vw, 75px);
  }

  .gate-copy small {
    max-width: 70%;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.3;
  }

  .gate-button {
    margin-top: 12px;
    padding: 7px 10px;
  }

  .gate-number {
    margin-bottom: 8px;
  }

  .gate-kicker {
    top: 15px;
    left: 18px;
    font-size: 9px;
  }

  .gate-rako {
    top: 0;
    right: -13%;
    width: 72%;
    opacity: .8;
  }

  .health-photo {
    top: 25px;
    right: -9%;
    width: 62%;
    opacity: .68;
  }

  .gate-tag {
    top: 14px;
    right: 14px;
    bottom: auto;
  }

  .center-mark {
    top: 50%;
    width: 74px;
    height: 74px;
    padding-top: 24px;
    font-size: 9px;
  }

  .center-mark img {
    top: -19px;
    width: 56px;
  }

  .landing-footer {
    display: none;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .gate {
    flex-basis: max(58svh, 430px);
    min-height: 430px;
  }

  .gate-copy {
    margin-bottom: 24px;
  }

  .gate-copy strong {
    font-size: clamp(48px, 16vw, 68px);
  }

  .gate-copy small {
    max-width: calc(100% - 18px);
    font-size: 13px;
  }

  .gate-rako {
    right: -18%;
    width: 76%;
    opacity: .64;
  }

  .health-photo {
    right: -14%;
    width: 68%;
    opacity: .56;
  }

  .gate-button {
    font-size: 11px;
  }

  .center-mark {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate,
  .gate-rako,
  .health-photo,
  .gate-copy strong,
  .gate-button b {
    transition: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .gate:hover,
  .gate:focus-visible {
    flex-grow: 1;
  }

  .split-gate:has(.gate:hover) .gate:not(:hover) {
    filter: none;
  }

  .gate-button {
    min-height: 44px;
  }

  .gate-copy strong,
  .gate-rako,
  .health-photo {
    transition: none;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 600px) {
  .split-gate {
    flex-direction: row;
  }

  .gate {
    flex: 1 1 50%;
    min-height: 100svh;
    border-bottom: 0;
  }

  .gate:first-child {
    border-right: 3px solid var(--ink);
  }

  .gate-copy {
    margin-bottom: 22px;
  }

  .gate-copy small {
    display: none;
  }

  .gate-copy strong {
    font-size: clamp(48px, 9vw, 78px);
  }
}

@media (prefers-contrast: more) {
  .gate-noise {
    display: none;
  }
}

@supports (padding: max(0px)) {
  .gate-kicker {
    top: max(24px, env(safe-area-inset-top));
  }

  .landing-footer {
    bottom: max(11px, env(safe-area-inset-bottom));
  }
}

/* Keep navigation copy readable on both halves and compact mobile screens. */
.gate-kicker,
.gate-number,
.gate-button,
.gate-tag,
.landing-footer {
  font-size: 13px;
}

@media (max-width: 900px) {
  .gate-kicker,
  .center-mark {
    font-size: 12px;
  }

  .gate-copy small {
    font-size: 14px;
  }
}

/* Final landing polish: stronger framing, cleaner mobile hierarchy, no image distortion. */
::selection {
  color: var(--paper);
  background: var(--coral);
}

.gate::after {
  position: absolute;
  z-index: 3;
  inset: 32% 0 0;
  background: linear-gradient(180deg, transparent, rgba(34, 22, 48, .18) 50%, rgba(34, 22, 48, .68));
  content: "";
  pointer-events: none;
}

.gate-health::after {
  background: linear-gradient(180deg, transparent, rgba(34, 22, 48, .28) 48%, rgba(22, 14, 31, .82));
}

.gate::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(246, 239, 226, .1);
  filter: blur(46px);
  content: "";
  opacity: 0;
  transform: translate(-20%, -15%) scale(.82);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.gate-health::before {
  right: 0;
  left: auto;
  background: rgba(229, 122, 112, .11);
  transform: translate(20%, -12%) scale(.82);
}

.gate:hover::before,
.gate:focus-visible::before {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.landing-main-site {
  background: linear-gradient(180deg, #fffaf1, var(--paper));
  box-shadow: 4px 4px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .16s ease, background-color .16s ease;
}

.gate-rako-image,
.health-photo img,
.center-mark img {
  object-fit: contain;
}

.gate-copy small {
  text-wrap: balance;
}

.gate-button {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 58%);
}

.center-mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .25), transparent 45%),
    var(--coral);
}

@media (max-width: 680px) {
  .landing-main-site {
    top: max(10px, env(safe-area-inset-top));
    padding: 8px 10px 6px;
  }

  .gate:first-of-type .gate-kicker,
  .gate:first-of-type .gate-tag {
    top: max(58px, calc(env(safe-area-inset-top) + 52px));
  }

  .gate::after {
    inset: 22% 0 0;
  }

  .gate-copy {
    z-index: 4;
  }

  .gate-copy small {
    max-width: min(74%, 330px);
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .gate::before {
    display: none;
  }

  .landing-main-site {
    transition: none;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .gate-copy small {
    max-width: calc(100% - 18px);
  }
}
