/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  padding-bottom: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hero-statement-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}

.hero-statement-text {
  font-family: var(--font-body);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 780px;
  text-align: center;
}

/* ============================================
   ROTATING WORD
   ============================================ */
.rotating-text-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

.rotating-text-inner {
  display: block;
  position: relative;
}

.rotating-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  color: var(--accent-blue);
  font-weight: 600;
}

.rotating-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.rotating-word.out {
  opacity: 0;
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .rotating-word {
    display: none;
    position: static;
    transform: none;
    transition: none;
  }

  .rotating-word.active {
    display: inline;
    opacity: 1;
  }
}

.hero-cta-block {
  margin-top: 48px;
}

.eye-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: #fff;
  color: #2B2B2B;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.eye-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #2B2B2B;
}

.eye-button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #2B2B2B;
}

.eye-button-eyes {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.eye {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-white {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #2B2B2B;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-pupil {
  width: 10px;
  height: 10px;
  background: #2B2B2B;
  border-radius: 50%;
  position: absolute;
  transition: transform 0.1s ease-out;
}

.eye-white.blink {
  animation: blink-eye 0.15s ease-in-out;
}

@keyframes blink-eye {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.05); }
}

/* ============================================
   ABOUT TEASER
   ============================================ */
.section-wave {
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  opacity: 0.4;
}

.about-teaser {
  text-align: center;
  padding: 96px 0;
}

.about-teaser-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-whatsup-box,
.figma-select {
  border: var(--border-width) solid #2B2B2B;
  box-shadow: var(--shadow);
  border-radius: 12px;
}

.about-whatsup-box {
  display: inline-block;
  padding: 10px 24px;
  margin-bottom: 32px;
}

.about-teaser-text {
  font-family: var(--font-body);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 800px;
  margin: 0 auto;
}

.about-teaser-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

/* ============================================
   FEATURED WORKS
   ============================================ */
.works-header {
  text-align: center;
  padding-bottom: 32px;
}

.works-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 16px;
}

.works-header .sticky-label {
  max-width: 420px;
  word-wrap: break-word;
  white-space: normal;
}

.works-container {
  position: relative;
}

.works-sticky-frame {
  position: sticky;
  top: calc(var(--nav-height) + 80px);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.works-card-tab {
  position: absolute;
  top: -44px;
  height: 44px;
  width: 25%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tab-bg);
  border: var(--border-width) solid #2B2B2B;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 3px -3px 0 #2B2B2B;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.8);
  clip-path: none;
  z-index: 2;
}

.works-card {
  position: absolute;
  top: 0;
  left: var(--container-padding);
  right: var(--container-padding);
  background: var(--card-bg);
  border: var(--border-width) solid #2B2B2B;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #2B2B2B;
  will-change: transform, opacity;
  transform-origin: center top;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.works-card.visible {
  opacity: 1;
  pointer-events: auto;
}

.works-card:nth-child(1) { z-index: 1; }
.works-card:nth-child(2) { z-index: 2; }
.works-card:nth-child(3) { z-index: 3; }
.works-card:nth-child(4) { z-index: 4; }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: #2B2B2B;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.work-card-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.work-card-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  color: #2B2B2B;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.work-card-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

.work-card-link {
  position: relative;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 18px;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2B2B2B;
  text-decoration: none;
  z-index: 0;
  transition: color 0.2s ease;
}

.work-card-link .btn-fill {
  position: absolute;
  inset: 0;
  background: #2B2B2B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: -1;
}

.work-card-link:hover {
  color: #fff;
}

.work-card-link:hover .btn-fill {
  transform: scaleX(1);
}

.work-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
}

.work-tag {
  padding: 8px 16px;
  background: #2B2B2B;
  color: #fff;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  font-size: 11px;
}

.work-card-image {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.work-card-image .figma-image {
  width: 100%;
  border-radius: 12px;
}

.work-card-image .thumb-placeholder {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .works-sticky-frame {
    position: relative;
    top: auto;
  }

  .works-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 24px;
  }

  .work-card-overlay {
    display: none;
  }

  .work-card-body {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }

  .work-card-info {
    padding: 32px 24px;
  }

  .work-card-title {
    font-size: 32px;
  }

  .work-card-image {
    padding: 0;
  }

  .work-card-image .thumb-placeholder {
    aspect-ratio: 21 / 9;
    border-radius: 12px;
  }

  .works-card-tab {
    width: auto;
    padding: 0 16px;
    font-size: 10px;
    left: 0 !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  }
}

/* ============================================
   CTA — FIGMA COMMENT
   ============================================ */
.cta-section {
  padding: 96px 0;
}

.cta-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 20px;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #2B2B2B;
  background: #fff;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ECC71;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.cta-available-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-text {
  margin-top: 20px;
  margin-bottom: 48px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 520px;
}

.cta-content-centered .eye-button {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
  }
}

/* ============================================
   FLOATING STICKY LABELS
   ============================================ */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--float-rotate, -4deg)); }
  50% { transform: translateY(-8px) rotate(var(--float-rotate, -4deg)); }
}

@keyframes float-slow-alt {
  0%, 100% { transform: translateY(0) rotate(var(--float-rotate, 3deg)); }
  50% { transform: translateY(-10px) rotate(var(--float-rotate, 3deg)); }
}

.sticky-label {
  animation: float-slow 4s ease-in-out infinite;
}

.hero-statement-block .sticky-label:nth-child(1) {
  --float-rotate: -4deg;
  animation: float-slow 4s ease-in-out infinite;
}

.hero-statement-block .sticky-label:nth-child(3) {
  --float-rotate: 3deg;
  animation: float-slow-alt 5s ease-in-out 0.5s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-label {
    animation: none;
  }
}

/* ============================================
   BUBBLE PIT
   ============================================ */
.bubblepit-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  background: var(--bg);
  padding: 0;
}

.bubblepit {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.bubble {
  position: absolute;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2B2B2B;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #2B2B2B;
  cursor: grab;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  animation: bubble-drop var(--drop-duration, 0.8s) ease-in var(--delay, 0s) forwards;
}

@keyframes bubble-drop {
  0% {
    opacity: 1;
    transform: translateY(-100px) rotate(calc(var(--rotation, 0) * 1deg));
  }
  60% {
    opacity: 1;
    transform: translateY(var(--land-y)) rotate(calc(var(--rotation, 0) * 1deg));
  }
  75% {
    transform: translateY(calc(var(--land-y) - 8px)) rotate(calc(var(--rotation, 0) * 1deg));
  }
  100% {
    opacity: 1;
    transform: translateY(var(--land-y)) rotate(calc(var(--rotation, 0) * 1deg));
  }
}

.bubble.pushed {
  transition: transform 0.4s ease-out;
}

.bubble.hidden-bubble {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .bubblepit {
    height: 200px;
  }
  .bubble:nth-child(n+12) {
    display: none;
  }
}

/* ============================================
   HAND-DRAWN DOODLES
   ============================================ */
.doodle {
  position: absolute;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.doodle-starburst {
  top: 30%;
  left: 6%;
  animation: doodle-spin 20s linear infinite;
}

.doodle-wave {
  top: 45%;
  right: 5%;
}

.doodle-arrow {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.15;
}

.doodle-leaf {
  top: 10%;
  right: 8%;
  transform: rotate(15deg);
}

.doodle-spiral {
  top: 40%;
  left: 4%;
}

.doodle-asterisk {
  top: -20px;
  right: 10%;
  animation: doodle-spin 12s linear infinite;
}

.doodle-circle-dash {
  bottom: 20%;
  left: 8%;
  animation: doodle-spin 30s linear infinite reverse;
}

.doodle-lightning {
  top: 20%;
  right: 12%;
}

.doodle-eye {
  bottom: 30%;
  left: 10%;
}

@keyframes doodle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.works-header {
  position: relative;
}

@media (max-width: 768px) {
  .doodle-wave,
  .doodle-spiral,
  .doodle-circle-dash,
  .doodle-lightning {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doodle {
    animation: none;
  }
}

/* ============================================
   MORE PROJECTS — CAROUSEL
   ============================================ */
.more-projects {
  padding: 80px 0 64px;
  overflow: hidden;
  text-align: center;
}

.more-projects .works-title {
  margin-bottom: 48px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: carousel-scroll 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-6 * (240px + 20px)));
  }
}

.more-card {
  flex-shrink: 0;
  width: 240px;
  background: var(--card-bg);
  border: var(--border-width) solid #2B2B2B;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #2B2B2B;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.more-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #2B2B2B;
}

.more-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.thumb-lso {
  background: #9B59B6;
}

.more-card-image .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
}

.more-card-info {
  padding: 16px;
  border-top: var(--border-width) solid #2B2B2B;
}

.more-card-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.more-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .more-card {
    width: 180px;
  }

  @keyframes carousel-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-6 * (180px + 20px)));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .more-card {
    scroll-snap-align: start;
  }
}
