/* ============================================================
   Jay Olofsson — Coming soon
   Palette from brand gradient guide:
     navy    #475569 → #526585
     cream   #F3F0DF → #F0EFE9
     sky     #D1E3F2 → #E6ECF2
     forest  #2B4D3B → #39664E
     sand    #E5D9CC → #FAEDDF
   ============================================================ */

@font-face {
  font-family: "Wylie Voigen";
  src: url("public/fonts/Wylie%20Voigen.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("public/fonts/Lato-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("public/fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("public/fonts/Lato-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("public/fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:       #475569;
  --navy-2:     #526585;
  --cream:      #F3F0DF;
  --cream-2:    #F0EFE9;
  --sky:        #D1E3F2;
  --sky-2:      #E6ECF2;
  --forest:     #2B4D3B;
  --forest-2:   #39664E;
  --sand:       #E5D9CC;
  --sand-2:     #FAEDDF;

  --display: "Wylie Voigen", Georgia, serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--navy);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2 {
  font-family: var(--display);
  font-weight: normal;
  line-height: 1.1;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.kicker {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 1.1rem;
}
.kicker--light { color: var(--sand); }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.9s var(--ease-soft);
}
.preloader__mark {
  width: 4.6rem;
  aspect-ratio: 467 / 680;
  background: var(--cream);
  -webkit-mask-image: url("public/images/web/logomark.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("public/images/web/logomark.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  animation: markIn 1.1s var(--ease-soft) both;
}
.preloader__word {
  width: 12.5rem;
  aspect-ratio: 763.69 / 146.84;
  background: var(--cream);
  -webkit-mask-image: url("public/images/web/logotype.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("public/images/web/logotype.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  animation: markIn 1.1s 0.25s var(--ease-soft) both;
}
@keyframes markIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4%);
  pointer-events: none;
}

/* ---------- Reveal animations ---------- */

.reveal-load,
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}
.reveal-load.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5.5rem;
  overflow: hidden;
}

/* signature pinstripes, like the bags and wrapping paper */
.hero__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 72px,
    rgba(71, 85, 105, 0.05) 72px,
    rgba(71, 85, 105, 0.05) 78px
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: clamp(190px, 26vw, 280px);
  height: auto;
  margin-bottom: 2.8rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 1.6rem;
}
.rule {
  display: inline-block;
  width: 3.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  color: var(--navy);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* room for Wylie Voigen's long descenders (g, j, y) inside the clip box;
     keep some of it between the lines so descenders don't touch the next line */
  padding-bottom: 0.32em;
  margin-bottom: -0.08em;
}
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(150%) rotate(4deg);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}
.hero__title.is-visible .char {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero__sub {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--navy-2);
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  margin-left: -3rem; /* keeps reveal translateY from fighting translateX */
  width: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-2);
}
.hero__scroll-text {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 2.6rem;
  background: var(--navy-2);
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */

.marquee {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem; /* matches gap so the duplicated half tiles seamlessly */
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__item {
  font-family: var(--display);
  font-size: 1.25rem;
  white-space: nowrap;
}
.marquee__dot { font-size: 0.7rem; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Story ---------- */

.story { padding: clamp(5rem, 10vw, 8.5rem) 1.5rem; }

.story__grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.story__media { position: relative; }
.story__frame {
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(71, 85, 105, 0.35);
  background: var(--sand-2);
}
.story__frame img {
  width: 100%;
  transition: transform 1.2s var(--ease-soft);
}
.story__media:hover .story__frame img { transform: scale(1.04); }

.story__stamp {
  position: absolute;
  right: -1.4rem;
  bottom: -1.8rem;
  width: 4.8rem;
  /* same proportions as the logomark's oval, so badge and ring run parallel */
  aspect-ratio: 467 / 680;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 50%;
  box-shadow: 0 14px 28px -10px rgba(71, 85, 105, 0.55);
}
.story__stamp::after {
  content: "";
  width: 72%;
  aspect-ratio: 467 / 680;
  background: var(--cream);
  -webkit-mask-image: url("public/images/web/logomark.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("public/images/web/logomark.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.story__copy h2 { margin-bottom: 1.4rem; }
.story__copy p + p { margin-top: 1.1rem; }
.story__copy p {
  line-height: 1.85;
  color: var(--navy-2);
  max-width: 32rem;
}
.story__signature {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--navy) !important;
  margin-top: 1.8rem !important;
}

/* ---------- Peek gallery ---------- */

.peek {
  padding: 0 1.5rem clamp(5rem, 10vw, 8.5rem);
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  max-width: 24rem;
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
}
.divider__line {
  flex: 1;
  height: 1px;
  background: rgba(71, 85, 105, 0.25);
}
.divider__mark {
  width: 1.7rem;
  aspect-ratio: 467 / 680;
  background: var(--navy-2);
  opacity: 0.75;
  -webkit-mask-image: url("public/images/web/logomark.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("public/images/web/logomark.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.peek__head {
  max-width: 68rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.peek__grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.peek__card {
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fdfcf8;
  box-shadow: 0 18px 40px -16px rgba(71, 85, 105, 0.35);
}
.peek__card img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  transition: transform 1.1s var(--ease-soft);
}
.peek__card:hover img { transform: scale(1.05); }
.peek__card figcaption {
  padding: 1.1rem 1.3rem 1.3rem;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy-2);
}

/* ---------- Soon ---------- */

.soon {
  position: relative;
  padding: clamp(5.5rem, 11vw, 9rem) 1.5rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.soon__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 64px,
    rgba(243, 240, 223, 0.05) 64px,
    rgba(243, 240, 223, 0.05) 70px
  );
  pointer-events: none;
}
.soon__inner { position: relative; max-width: 38rem; margin: 0 auto; }
.soon__title { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 1.3rem; }
.soon__text { line-height: 1.85; color: var(--sky-2); }

/* ---------- Notify form ---------- */

.notify {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}
.notify__input {
  flex: 1 1 auto;
  max-width: 21rem;
  padding: 0.95rem 1.3rem;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(243, 240, 223, 0.08);
  border: 1px solid rgba(243, 240, 223, 0.4);
  border-radius: 0.25rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.notify__input::placeholder { color: rgba(243, 240, 223, 0.45); }
.notify__input:focus {
  border-color: var(--cream);
  background: rgba(243, 240, 223, 0.12);
}
.notify__btn {
  padding: 0.95rem 1.9rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.notify__btn:hover { background: var(--sand-2); transform: translateY(-2px); }
.notify__btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.notify__note {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(230, 236, 242, 0.65);
}
.notify__success {
  margin-top: 2.4rem;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--sand-2);
  animation: markIn 0.8s var(--ease-soft) both;
}
.notify__honey {
  position: absolute;
  left: -5000px;
  opacity: 0;
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .notify { flex-direction: column; align-items: stretch; }
  .notify__input { max-width: none; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: var(--sky-2);
  text-align: center;
  padding: 2.6rem 1.5rem 2.8rem;
  border-top: 1px solid rgba(243, 240, 223, 0.12);
}
.footer__logo {
  display: inline-block;
  width: 132px;
  height: 100px;
  background: var(--cream);
  -webkit-mask-image: url("public/images/web/logo.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("public/images/web/logo.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: 0.9;
}
.footer__copy {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 30rem; margin: 0 auto; }
  .story__stamp { right: 0.6rem; }
  .peek__grid { grid-template-columns: 1fr; max-width: 30rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal, .hero__title .char {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track, .hero__scroll-line::after, .preloader__mark, .preloader__word {
    animation: none;
  }
  .preloader { display: none; }
}
