@font-face {
  font-family: "Athletics";
  src: url(fonts/athletics-regular.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Athletics";
  src: url(fonts/athletics-medium.otf) format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Athletics";
  src: url(fonts/athletics-bold.otf) format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cheee Choy";
  src: url(fonts/cheee-choy.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

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

html {
  background: #2a1840;
  -webkit-text-size-adjust: 100%;
  overflow: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  color: #fffaf4;
  font-family: Athletics, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: clip;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #2a1840;
  pointer-events: none;
}

.scene__drift {
  position: absolute;
  inset: -6%;
  will-change: transform;
  animation: drift 56s ease-in-out infinite alternate;
}

.scene__drift picture,
.scene__drift img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.scene__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 48% at 42% 28%, rgba(255, 200, 120, 0.42), transparent 62%),
    radial-gradient(ellipse 70% 50% at 70% 70%, rgba(180, 140, 255, 0.18), transparent 70%);
  mix-blend-mode: soft-light;
  animation: breathe 11s ease-in-out infinite;
  pointer-events: none;
}

.scene__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255, 170, 210, 0.16),
    rgba(160, 210, 255, 0.12) 48%,
    rgba(255, 220, 150, 0.18)
  );
  mix-blend-mode: overlay;
  animation: shimmer 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.scene__grain {
  position: absolute;
  inset: -40%;
  width: 180%;
  height: 180%;
  background-image: url(grain.png);
  background-size: 240px 240px;
  opacity: 0.22;
  mix-blend-mode: overlay;
  animation: grain 0.55s steps(4) infinite;
  pointer-events: none;
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(-1.1%, 0.7%, 0); }
  to   { transform: scale(1.13) translate3d(1.4%, -0.9%, 0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes shimmer {
  from { opacity: 0.28; }
  to   { opacity: 0.72; }
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-1.6%, 1.1%, 0); }
  50%  { transform: translate3d(1.2%, -2.2%, 0); }
  75%  { transform: translate3d(-0.8%, 1.6%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5.5vw;
  text-align: center;
}

.title {
  position: relative;
  margin: 0;
  max-width: none;
  font-family: "Cheee Choy", Athletics, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: min(7vw, 9rem);
  line-height: 0.86;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-wrap: balance;
  /* Frosted glass letters: translucent milky fill, bright edge, soft inner glow */
  color: rgba(255, 255, 255, 0.38);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.72);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 18px rgba(255, 255, 255, 0.45),
    0 10px 40px rgba(120, 60, 140, 0.18);
}

/* Hazy frosted pane behind the headline, fading out at the edges */
.haze {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 1300px);
  height: min(62vh, 640px);
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(22px) saturate(1.35) brightness(1.06);
  backdrop-filter: blur(22px) saturate(1.35) brightness(1.06);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.reveal .haze { opacity: 0; transition: opacity 1.8s ease; }
.reveal.reveal--split .haze { opacity: 1; }

.contact {
  position: relative;
  margin-top: clamp(1rem, 2.2vw, 1.75rem);
  padding: 0.6rem 0.25rem;
  color: #fff;
  font-family: Athletics, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.contact::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.35rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.contact:hover::after,
.contact:focus-visible::after { opacity: 1; }



.contact:focus-visible {
  outline: 2px solid #fffaf4;
  outline-offset: 6px;
  border-radius: 2px;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {

  }
}

.w { white-space: nowrap; }

.reveal .title { visibility: hidden; }
.reveal.reveal--split .title { visibility: visible; }

.reveal .title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal--in .title .ch {
  opacity: 1;
  transform: none;
}

.reveal .contact {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal--in .contact {
  opacity: 1;
  transition-delay: var(--after-text, 0.8s);
}

.reveal.reveal--done .contact {
  transition-delay: 0s;
}

@media (max-width: 700px) {
  .title {
    font-size: 17vw;
    max-width: none;
    white-space: normal;
    line-height: 0.86;
  }

  .haze { height: min(50vh, 460px); }

  main {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__drift,
  .scene__glow,
  .scene__shimmer,
  .scene__grain {
    animation: none;
  }

  .scene__drift {
    inset: 0;
    transform: none;
  }

  .scene__glow,
  .scene__shimmer {
    opacity: 0.45;
  }

  .scene__grain {
    opacity: 0.14;
  }

  .contact {
    transition: none;
  }
}

/* Contact modal: frosted glass panel over the farm */
.modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.modal[open] { display: grid; place-items: center; }
.modal::backdrop {
  background: rgba(60, 30, 80, 0.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  animation: modal-fade 0.35s ease both;
}
.modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 2.5rem));
  margin: 1.25rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 80px rgba(70, 30, 90, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  animation: modal-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal.is-closing::backdrop { animation: modal-fade-out 0.5s ease both; }
.modal.is-closing .modal__panel { animation: modal-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
@media (hover: hover) { .modal__close:hover { opacity: 0.7; } }
.modal__close { transition: opacity 0.2s ease; }
.modal__title {
  margin: 0 0 1.6rem;
  text-align: center;
  font-family: "Cheee Choy", Athletics, sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 2px 24px rgba(120, 60, 140, 0.2);
}
.modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 700 1.05rem/1 Athletics, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.modal__option span[aria-hidden] { opacity: 0.75; transition: transform 0.2s ease; }
.modal__option:hover,
.modal__option:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.85);
  outline: none;
}
.modal__option:hover span[aria-hidden] { transform: translateX(3px); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) {
  .modal::backdrop, .modal__panel { animation: none; }
}

.modal__close:focus { outline: none; }
.modal__close:focus-visible { outline: none; }

/* Marshmallow squish: each letter slowly squeezes and settles, at its own pace */
.reveal.reveal--in .title .ch {
  transform-origin: 50% 90%;
  animation: squish var(--squish-dur, 3.4s) ease-in-out var(--squish-delay, 0s) infinite;
}
@keyframes squish {
  0%, 100% { scale: 1 1; translate: 0 0; }
  28%      { scale: 1.035 0.965; translate: 0 0.008em; }
  58%      { scale: 0.982 1.022; translate: 0 -0.018em; }
  80%      { scale: 1.008 0.993; translate: 0 0; }
}

/* Mobile only: stack as MARSH / MALLOW / FARM */
.title .mb { display: none; }
@media (max-width: 700px) {
  .title .mb { display: block; }
}

.modal__panel:focus { outline: none; }
@media (max-width: 700px) { .modal__close { display: none; } }
