* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.home {
  position: relative;
  width: 1440px;
  height: 3650px;
  margin: 0 auto;
  overflow-x: visible;
  overflow-y: clip;
}

/* decorative ribbons */
.deco {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.deco img {
  display: block;
  max-width: none;
}

.deco-bow { left: -253px; top: 886px; width: 1548px; height: 764px; }

.deco-bow2 { left: -386px; top: 1940px; width: 2024px; height: 764px; }

.deco-bow3 { left: 368px; top: 2503px; width: 1520px; height: 996px; }

/* hero — an invisible anchor only, so the scroll-triggered ribbons below still
   know where the hero area ends (see ribbons.js). The name itself is the
   .intro-name/.intro-role block just below it. */
.hero-panel {
  position: absolute;
  left: 118px;
  top: 202px;
  width: 1204px;
  height: 650px;
}

/* projects heading */
.projects-heading {
  position: absolute;
  left: 128px;
  top: 1063px;
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: 96px;
}

/* project circles */
.circle {
  position: absolute;
  display: block;
  width: 592px;
  height: 592px;
  border-radius: 50%;
  overflow: hidden;
}

a.circle {
  cursor: pointer;
}

.circle img.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-bouqs { left: 118px; top: 1285px; }

.circle-alaska { left: 730px; top: 1897px; }
.circle-alaska img.fill { object-position: 50% 49.5%; }

.circle-homealone { left: 118px; top: 2609px; background: #00192f; }
.circle-homealone img.fill { object-position: 50% 46%; }
.circle-homealone .sparkle {
  position: absolute;
  left: 259px;
  top: 123px;
  width: 90px;
  height: 90px;
  pointer-events: none;
}
.circle-homealone .sparkle-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.circle-homealone .sparkle-star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 19px;
  transform: translate(-50%, -50%);
}

/* hover rings: 700px frames centred on a 592px circle (54px outset) */
.ring-hover {
  position: absolute;
  pointer-events: none;
}

.ring-bouqs { left: 64px; top: 1231px; width: 700px; height: 700px; }
.ring-alaska { left: 676px; top: 1843px; width: 700px; height: 700px; }
.ring-homealone { left: 64px; top: 2555px; width: 700px; height: 700px; }

/* project copy */
.project-title {
  position: absolute;
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
}

.project-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 461px;
}

.project-desc {
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: normal;
}

.title-bouqs { left: 730px; top: 1460px; }
.text-bouqs { left: 750px; top: 1557px; }

.title-alaska { left: 163px; top: 2072px; }
.text-alaska { left: 183px; top: 2169px; }

.title-homealone { left: 730px; top: 2745px; width: 462px; }
.text-homealone { left: 750px; top: 2919px; }

/* description box heights from the design, so each button sits 16px under its box (Bouqs fits its text) */
.text-alaska .project-desc { height: 117px; }
.text-homealone .project-desc { height: 91px; }

/* project buttons: a solid outline; on hover the black fill wipes in from the left edge to the right edge */
.project-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-self: flex-end;
  justify-content: center;
  align-items: center;
  width: 196px;
  height: 67px;
  padding: 19px 32px;
  border: 2px solid #000;
  border-radius: 10px;
  background: linear-gradient(#000, #000) left center / 0% 100% no-repeat;
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a.project-btn { cursor: pointer; }

.project-btn:hover,
.project-btn:focus-visible {
  background-size: 100% 100%;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .project-btn { transition: none; }
}

.text-alaska .project-btn { align-self: flex-start; }

/* back to top */
.back-to-top {
  position: absolute;
  left: 50%;
  top: 3524px;
  width: 48px;
  height: 48px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.back-to-top img {
  display: block;
  width: 100%;
  height: 100%;
}

.back-to-top.visible:hover {
  transform: translateX(-50%) translateY(-10px);
}

/* closing intro — matches Figma node 260:5 (Dina / Interaction Designer / Lin) */
.intro-name {
  position: absolute;
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 350px;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  white-space: nowrap;
}

.intro-name .accent { color: #75a08b; }

.intro-dina { left: 118px; top: 202px; }
.intro-lin { left: 843px; top: 480px; }

.intro-role {
  position: absolute;
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: normal;
  white-space: nowrap;
  left: 881px;
  top: 389px;
}

