@font-face {
  font-display: block;
  font-family: "GT America Trial";
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/GTAmericaTrial-ExpMd.woff2") format("woff2");
}

@font-face {
  font-display: block;
  font-family: "GT America";
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/GTAmerica-Light.woff2") format("woff2");
}

@font-face {
  font-display: block;
  font-family: "GT America";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/GTAmerica-Regular.woff2") format("woff2");
}

@font-face {
  font-display: block;
  font-family: "PP Woodland";
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/PPWoodland-Light.woff2") format("woff2");
}

@font-face {
  font-display: block;
  font-family: "PP Woodland";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/PPWoodland-Regular.woff2") format("woff2");
}

:root {
  --cream: #f4eddd;
  --olive: #344128;
  --gold: #fec820;
  --soft: #cfd0c0;
}

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

html,
body {
  background: #f7f3ec;
  min-height: 100%;
  width: 100%;
}

body {
  color: var(--olive);
  font-family: "PP Woodland", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

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

.canvasWrapper {
  height: 100%;
  left: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 0;
}

.scene-canvas {
  left: 0;
  position: fixed;
  top: 0;
}

.wrapper {
  left: 0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1;
}

.wrapper-content {
  min-height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.fixed-content {
  height: 100vh;
  height: 100svh;
  left: 0;
  perspective: 1500px;
  position: fixed;
  top: 0;
  width: 100%;
  will-change: transform;
}

.fixed-content-inner {
  min-height: 100%;
  position: relative;
  transform-origin: center top;
  width: 100%;
  will-change: transform;
}

.ui-intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 85vh;
  height: 85svh;
  justify-content: center;
  left: 0;
  perspective: 2000px;
  position: relative;
  top: 7.5vh;
  width: 100%;
}

.intro-3d {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  will-change: transform;
}

.ui-intro h1 {
  line-height: 0;
  margin: 20px 0 25px;
  position: relative;
}

.ui-intro .baseline {
  margin: 0 auto;
  position: relative;
  width: min(55.25vw, 148.75vh);
}

.ui-intro p {
  box-sizing: border-box;
  color: #000);
  font-family: "GT America Trial", sans-serif;
  font-size: min(0.8125vw, 2.1875vh);
  font-weight: 500;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.ui-intro .scroll {
  align-items: center;
  bottom: -12.5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  will-change: transform, opacity;
}

.ui-intro .scroll span {
  color: #000;
  font-family: "GT America", sans-serif;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.ui-intro .scroll .line {
  background-color: rgba(228, 37, 39, 0.5);
  height: 95px;
  margin: 10px 0 0;
  overflow: hidden;
  position: relative;
  width: 2px;
}

.ui-intro .scroll .line-inner {
  animation: linearMove 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  background-color: rgba(228, 37, 39, 0.5);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.character-reveal {
  --section-progress: 0;
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 100vh;
  height: 100svh;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  text-align: center;
  width: 100%;
}

.character-reveal__background {
  align-items: center;
  box-sizing: border-box;
  color: var(--soft);
  display: flex;
  font-family: "PP Woodland", sans-serif;
  font-size: min(3.7572254335vw, 9.2105263158vh);
  font-weight: 300;
  height: 100%;
  justify-content: center;
  left: 0;
  line-height: 1;
  padding: 40px 20px;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  width: 100%;
}

.character-reveal__background p,
.character-reveal__text > p {
  max-width: 85%;
  position: relative;
}

.character-reveal__text {
  color: var(--olive);
  font-family: "PP Woodland", sans-serif;
  font-size: min(3.7572254335vw, 9.2105263158vh);
  font-weight: 300;
  line-height: 1;
  margin: 0 auto;
  max-width: 100%;
  opacity: calc(0.3 + var(--section-progress) * 0.7);
  position: relative;
  text-transform: uppercase;
}

.character-reveal__char,
.character-reveal__char-background {
  display: inline-block;
}

.character-reveal__char {
  color: var(--olive);
  opacity: 0;
}

.character-reveal__char-background {
  color: rgb(207 208 192 / calc(0.45 + (1 - var(--section-progress)) * 0.55));
}

.character-reveal__note-top {
  margin: 0 0 10vh;
  opacity: 0;
  position: relative;
  transform: translate3d(0, 30px, 0);
  width: 100%;
  will-change: transform, opacity;
}

.character-reveal__note-top p {
  align-items: center;
  color: var(--olive);
  display: flex;
  font-family: "GT America", sans-serif;
  font-size: min(1.1111111111vw, 2.9166666667vh);
  font-weight: 300;
  justify-content: space-between;
  line-height: 1;
  margin: 0 auto;
  padding: 0 8% 0 0;
  position: relative;
  text-align: right;
  text-transform: none;
}

.note-divider {
  border-top: 1px solid rgba(207, 208, 192, 1);
  display: inline-block;
  margin: 0 12px;
  width: 54px;
}

.character-reveal__note-bottom {
  bottom: -24px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: translateY(100%);
  width: 100%;
  will-change: transform, opacity;
}

.character-reveal__note-bottom p {
  color: var(--olive);
  font-family: "GT America", sans-serif;
  font-size: min(1.1111111111vw, 2.9166666667vh);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  text-align: center;
  text-transform: none;
}

.wrapper-background {
  margin: 0;
  max-width: 85%;
  position: relative;
}

.body-copy-wrapper {
  align-items: flex-start;
  display: flex;
  height: 100%;
  justify-content: flex-end;
  margin: 12vh 0 0;
  opacity: 0;
  position: relative;
  transform: translate3d(0, 48px, 0);
  width: 100%;
  will-change: transform, opacity;
}

.body-copy {
  height: 100%;
  left: 0;
  position: relative;
  top: 0;
  width: 23vw;
}

.body-copy p {
  color: var(--olive);
  font-family: "GT America", sans-serif;
  font-size: min(1.1111111111vw, 2.9166666667vh);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 10px;
  text-align: left;
  text-transform: none;
}

.character-reveal__background .body-copy-wrapper,
.character-reveal__background .character-reveal__note-bottom,
.character-reveal__background .character-reveal__note-top {
  visibility: hidden;
}

.cards {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.card {
  opacity: 0;
  position: absolute;
  will-change: transform, opacity;
}

.card-1 {
  left: 10%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 15.2vw;
}

.card-2 {
  height: 27.7vw;
  left: 38%;
  top: 55%;
  transform: translate(-50%, -50%);
}

.card-3 {
  left: 30%;
  top: 80%;
  transform: translate(-50%, -50%);
  width: 15.2vw;
}

.space {
  height: 150px;
  position: relative;
  width: 100%;
}

@keyframes linearMove {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 767px) {
  .ui-intro {
    height: 100vh;
    height: 100svh;
    top: 0;
  }

  .ui-intro h1 {
    margin: 15px 0;
  }

  .ui-intro .baseline {
    width: 90vw;
  }

  .ui-intro .scroll {
    bottom: 0;
  }

  .character-reveal,
  .character-reveal__background {
    font-size: 24px;
    padding: 80px 20px 40px;
  }

  .character-reveal__text {
    font-size: 24px;
  }

  .character-reveal__note-top {
    margin: 0 0 6vh;
  }

  .character-reveal__note-top p,
  .character-reveal__note-bottom p,
  .body-copy p {
    font-size: 14px;
    padding: 0;
  }

  .body-copy-wrapper {
    margin: 6vh 0 0;
  }

  .body-copy {
    width: 100%;
  }

  .card {
    visibility: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1780px) {
  .ui-intro .baseline {
    max-width: 800px;
    width: 70vw;
  }

  .ui-intro p {
    font-size: 12px;
    max-width: 383px;
  }

  .character-reveal__background,
  .character-reveal__text {
    font-size: 54px;
  }

  .character-reveal__background p,
  .character-reveal__text > p,
  .wrapper-background {
    max-width: 1200px;
  }

  .character-reveal__note-top p,
  .character-reveal__note-bottom p,
  .body-copy p {
    font-size: 16px;
  }

  .body-copy {
    width: 335px;
  }

  .card-1,
  .card-3 {
    width: 219px;
  }

  .card-2 {
    height: 400px;
  }
}



/* ── Solanimaa Split Layout ── */
.solanimaa-split {
  text-align: left !important;
  position: absolute;
  top: 65%;
  left: 5%;
  right: 5%;
  display: flex;
  gap: 3rem;
  padding: 4rem 5% 2rem;
  max-width: 1200px;
  align-items: flex-start;
}

.solanimaa-split__images {
  flex: 0 0 340px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

/* Polaroid Cards */
.polaroid {
  position: relative;
  background: #fff;
  padding: 10px 10px 30px;
  box-shadow: 2px 4px 16px rgba(0,0,0,.12);
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.6s ease;
}

.polaroid__inner {
  position: relative;
}

.polaroid__photo {
  width: 150px;
  height: 190px;
  background: #d4c4a8;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 8px,
    rgba(0,0,0,.03) 8px, rgba(0,0,0,.03) 16px
  );
}

.polaroid__caption {
  font-family: "Playfair Display", serif;
  font-size: 0.75rem;
  color: #8a7e6b;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.polaroid--1 {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 2;
}

.polaroid--2 {
  top: 20px;
  left: 0;
  transform: rotate(4deg);
  z-index: 1;
}

/* Vintage Illustration */
.vintage-illustration {
  position: absolute;
  bottom: 0;
  right: -20px;
  z-index: 3;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.6s ease;
}

.vintage-illustration__frame {
  width: 160px;
  height: 200px;
  background: #c8b898;
  border: 3px solid #a0926e;
  border-radius: 4px;
  background-image:
    radial-gradient(circle at 50% 40%, #bba87a 0%, transparent 60%),
    linear-gradient(to bottom, #d4c4a0, #b8a880);
}

/* Right-side Content */
.solanimaa-split__content {
  text-align: left !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1rem;
}

.solanimaa-split__text {
  text-align: left !important;
  font-family: "Inter", sans-serif;
  font-size: 1rem !important;
  line-height: 1.75;
  color: #3d3529;
  text-transform: none !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  margin-bottom: 2rem;
}

.solanimaa-split__cta {
  display: inline-block;
  align-self: flex-start;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3d3529;
  text-decoration: none;
  border: 1.5px solid #3d3529;
  padding: 0.75rem 2.5rem;
  transition: background 0.3s, color 0.3s;
}

.solanimaa-split__cta:hover {
  background: #3d3529;
  color: #f3e7cf;
}

/* Scroll reveal animation states */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.polaroid--1.scroll-reveal.visible {
  transform: translateY(0) rotate(-6deg);
}

.polaroid--2.scroll-reveal.visible {
  transform: translateY(0) rotate(4deg);
}

.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.solanimaa-split__content.scroll-reveal { transition-delay: 0.35s; }

/* Responsive */
@media (max-width: 768px) {
  .solanimaa-split {
    flex-direction: column;
    padding: 2rem 5%;
    gap: 2rem;
  }
  .solanimaa-split__images {
    min-height: 300px;
  }
  .polaroid__photo {
    width: 140px;
    height: 170px;
  }
  .vintage-illustration__frame {
    width: 120px;
    height: 150px;
  }
  .solanimaa-split__content {
    text-align: center;
  }
  .solanimaa-split__cta {
    align-self: center;
  }
}
