/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  padding: 40px calc((100% - 1120px) / 2 + 48px);
  pointer-events: none;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

@media (max-width: 1120px) {
  .header {
    padding: 40px 48px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 24px 20px;
  }
}

.header.detail-mode {
  padding: 8px calc((100% - 1120px) / 2 + 48px);
}

@media (max-width: 1120px) {
  .header.detail-mode {
    padding: 8px 48px;
  }
}

@media (max-width: 600px) {
  .header.detail-mode {
    padding: 8px 20px;
  }
}

@media (max-width: 768px) {
  .header.detail-mode {
    padding: 4px 20px;
    min-height: 44px;
    align-items: center;
  }

  .header.detail-mode .header-nav {
    display: none;
  }
}

.header > * {
  pointer-events: auto;
}

/* Header needs relative positioning so the arrow can anchor to it */
.header {
  position: fixed; /* already fixed, but ensure relative context for children */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0;
  /* position:static so the back-arrow anchors to the header (position:fixed) */
}

/* Arrow is absolutely positioned relative to the header (fixed element = containing block).
   It sits at the same left edge as the header's padding, vertically centered in the header. */
.back-arrow {
  position: absolute;
  /* horizontally: match header left padding (20px on mobile, 48px on desktop) */
  left: calc((100vw - min(100vw, 1120px)) / 2 + 48px - 24px);
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: #000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center center;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, font-size 0.5s ease;
}

@media (max-width: 1120px) {
  .back-arrow {
    left: 24px;
  }
}

@media (max-width: 600px) {
  .back-arrow {
    left: 0px;
  }
}

.detail-mode .back-arrow {
  font-size: 24px;
}

.back-arrow:hover {
  color: #666;
}

/* Header hidden on project detail page — only back arrow visible */
.header.header-hidden {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.40) 100%);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.header.header-scrolled {
  border-bottom-color: rgba(45, 45, 45, 0.10);
}

.header-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: left center;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.header-nav {
  transform-origin: right center;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

/* When header hides: name + nav scale down and blur out */
.header.header-hidden .header-name {
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.85);
  pointer-events: none;
}

.header.header-hidden .header-nav {
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.85);
  pointer-events: none;
}

/* Arrow starts scaled down + blurred */
.back-arrow:not(.visible) {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-50%) scale(0.85);
}

.back-arrow.visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.name {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  letter-spacing: -0.02em;
  transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-mode .name {
  font-size: 17px;
}

.year-display {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.02em;
  height: 20px;
  transition: opacity 0.3s ease, font-size 0.5s ease, height 0.5s ease;
}

.detail-mode .year-display {
  font-size: 11px;
  height: 16px;
}

.header-nav {
  display: flex;
  gap: 4px;
  padding-top: 6px;
}

.header-nav a {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  text-decoration: none;
  vertical-align: bottom;
  transition: color 0.2s ease, font-size 0.5s ease;
  padding: 8px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.detail-mode .header-nav a {
  font-size: 14px;
}

.header-nav a:hover {
  color: #000;
}

/* ===== Mobile-home identity block (hidden on desktop) ===== */
.mobile-home-content {
  display: none;
}

/* ===== Scroll Container (Home View) ===== */
.scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.scroll-container.grabbing {
  cursor: grabbing;
}

.scroll-track {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-top: clamp(160px, 30vh, 280px);
  gap: 0;
  will-change: transform;
}

/* ===== Project Group ===== */
.project-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
  padding: 0 clamp(16px, 4vw, 50px);
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-group:first-child {
  padding-left: max(clamp(16px, 4vw, 48px), calc((100vw - 1120px) / 2 + 48px));
}

.project-group:last-child {
  padding-right: max(clamp(16px, 4vw, 48px), calc((100vw - 1120px) / 2 + 48px));
}

/* ===== Device Mockups ===== */
.device-mockup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.device-mockup img {
  display: block;
  width: clamp(220px, 45vw, 550px);
  height: auto;
  object-fit: contain;
}

.device-mockup .placeholder {
  width: 100%;
  height: 100%;
  background: #F0F0F0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CCC;
  font-size: 14px;
  font-weight: 500;
}

.project-group:hover .device-mockup {
  transform: scale(1.02);
}

/* ===== Transition States ===== */
.project-group.push-left {
  transform: translateX(-300px);
  opacity: 0;
  pointer-events: none;
}

.project-group.push-right {
  transform: translateX(300px);
  opacity: 0;
  pointer-events: none;
}

.project-group.active-project {
  visibility: hidden;
  pointer-events: none;
}

/* Hide scrollbar on home */
.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== Floating image for FLIP transition ===== */
.flip-image {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  will-change: transform, width, height, top, left;
  transition: top 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Detail Page (Vertical Scroll) ===== */
.detail-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  transition: opacity 0.4s ease;
}

.detail-page.visible {
  opacity: 1;
  pointer-events: auto;
}

.detail-page::-webkit-scrollbar {
  display: none;
}

.detail-page {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== Grid Container ===== */
.detail-content {
  padding-top: 90px;
}

.detail-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  overflow: visible;
}

/* ===== Detail Hero Section ===== */
.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 75vh;
  position: relative;
}

.detail-hero-text {
  flex: 0 0 38%;
  max-width: 463px;
  position: relative;
  z-index: 2;
}

.detail-hero-title {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.48px;
  background: linear-gradient(90deg, #2F82FF 0%, #B8D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-hero-title strong {
  font-weight: 800;
  -webkit-text-fill-color: transparent;
}

.detail-hero-title em {
  font-style: normal;
}

.detail-hero-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-hero-group + .detail-hero-group {
  margin-top: 40px;
}

.detail-hero-description {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

.detail-hero-description strong {
  font-weight: 600;
}

.detail-hero-fluidity-title {
  font-size: 24px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
}

.detail-hero-quote {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

.detail-hero-quote em {
  font-style: italic;
}

.detail-hero-results-label {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.48px;
  line-height: normal;
  background: linear-gradient(52deg, #558F50 2.33%, #6FC169 42.34%, #558F50 97.98%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-hero-results {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

.detail-hero-image {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.detail-hero-image img {
  width: 78vw;
  max-width: 1129px;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: grab;
}

/* Invisible placeholder during FLIP — keeps layout space */
.detail-hero-image.flip-placeholder img {
  visibility: hidden;
}

/* ===== Detail Content Sections ===== */
.detail-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.detail-section-split {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.detail-section-images {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-section-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.detail-section-text {
  flex: 1;
  padding-top: 20px;
}

.detail-section-title {
  font-size: 24px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
}

.detail-section-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
  margin-bottom: 16px;
}

.detail-section-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.4px;
  line-height: normal;
  margin-bottom: 16px;
}

.detail-section-icon-strip {
  margin-top: 40px;
}

.detail-section-icon-strip img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

/* ===== Fade-in animation for sections on scroll ===== */
.detail-hero-text,
.detail-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.detail-hero-text.in-view,
.detail-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About Page ===== */
.about-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  filter: blur(16px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.about-page.visible {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

.about-page::-webkit-scrollbar { display: none; }
.about-page { -ms-overflow-style: none; scrollbar-width: none; }

.about-content {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ===== About Hero (centered) ===== */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 140px 48px 40px;
}

.about-heading {
  font-size: 24px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
}

.about-intro {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  letter-spacing: -0.36px;
  line-height: 25px;
  max-width: 417px;
}

/* ===== Process Section ===== */
.about-process-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 40px 0 0;
}

.about-process-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 48px;
}

/* Scroll-driven animation wrapper */
.process-scroll-area {
  position: relative;
  width: 100%;
  height: 350vh;
}

.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Canvas maintains Figma aspect ratio */
.process-canvas {
  position: relative;
  width: min(85vw, 145vh);
  aspect-ratio: 1904 / 1060;
}

/* ── Rotating group (circle + arrows) ── */
.process-rotating {
  position: absolute;
  left: calc(473.93 / 1904 * 100%);
  top: calc(71.86 / 1060 * 100%);
  width: calc(955.814 / 1904 * 100%);
  height: calc(955.814 / 1060 * 100%);
  will-change: transform;
}

.process-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Arrow positions & rotations from Figma */
.process-arrow-0 { left: calc(222.26 / 955.814 * 100%); top: calc(39.86 / 955.814 * 100%); width: calc(40.678 / 955.814 * 100%); height: calc(49.906 / 955.814 * 100%); }
.process-arrow-0 img { transform: rotate(61.99deg); }
.process-arrow-1 { left: calc(704.65 / 955.814 * 100%); top: calc(44.65 / 955.814 * 100%); width: calc(40.678 / 955.814 * 100%); height: calc(49.906 / 955.814 * 100%); }
.process-arrow-1 img { transform: rotate(-61.99deg) scaleY(-1); }
.process-arrow-2 { left: calc(916.74 / 955.814 * 100%); top: calc(348.84 / 955.814 * 100%); width: calc(48.908 / 955.814 * 100%); height: calc(33.121 / 955.814 * 100%); }
.process-arrow-2 img { transform: rotate(-15deg) scaleY(-1); }
.process-arrow-3 { left: calc(33.49 / 955.814 * 100%); top: calc(692.09 / 955.814 * 100%); width: calc(49.832 / 955.814 * 100%); height: calc(41.66 / 955.814 * 100%); }
.process-arrow-3 img { transform: rotate(-30deg); }
.process-arrow-4 { left: calc(-8.37 / 955.814 * 100%); top: calc(353.02 / 955.814 * 100%); width: calc(48.908 / 955.814 * 100%); height: calc(33.121 / 955.814 * 100%); }
.process-arrow-4 img { transform: rotate(15deg); }
.process-arrow-5 { left: calc(874.88 / 955.814 * 100%); top: calc(692.09 / 955.814 * 100%); width: calc(49.832 / 955.814 * 100%); height: calc(41.66 / 955.814 * 100%); }
.process-arrow-5 img { transform: rotate(30deg) scaleY(-1); }
.process-arrow-6 { left: calc(456.28 / 955.814 * 100%); top: calc(933.49 / 955.814 * 100%); width: calc(22.326 / 955.814 * 100%); height: calc(44.651 / 955.814 * 100%); }
.process-arrow-6 img { transform: rotate(90deg) scaleY(-1); }

/* ── Blur glow behind center image ── */
.process-blur-glow {
  position: absolute;
  left: calc((624 - 656 * 0.1738) / 1904 * 100%);
  top: calc((238 - 656 * 0.1738) / 1060 * 100%);
  width: calc((656 * 1.3476) / 1904 * 100%);
  height: calc((656 * 1.3476) / 1060 * 100%);
  pointer-events: none;
  opacity: 0;
}

.process-blur-glow img {
  width: 100%;
  height: 100%;
}

/* ── Center image ── */
.process-center-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(759 / 1904 * 100%);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  filter: blur(30px);
  will-change: transform, filter, opacity;
}

.process-center-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Process cards ── */
.process-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(215, 229, 245, 0.4);
  border-radius: calc(27.907 / 1904 * 100vw);
  font-size: clamp(13px, calc(20 / 1904 * 100vw), 20px);
  color: rgba(45, 45, 45, 0.8);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em;
  letter-spacing: -0.02em;
  line-height: 1.2;
  filter: blur(20px);
  opacity: 0;
  will-change: filter, opacity;
}

/* Card positions from Figma — width/height auto so text never overflows */
.process-card-0 { left: calc(854.86 / 1904 * 100%); top: calc(30 / 1060 * 100%); }
.process-card-1 { left: calc(1227.42 / 1904 * 100%); top: calc(205.81 / 1060 * 100%); }
.process-card-2 { left: calc(1291.6 / 1904 * 100%); top: calc(544.88 / 1060 * 100%); }
.process-card-3 { left: calc(1114.4 / 1904 * 100%); top: calc(883.95 / 1060 * 100%); }
.process-card-4 { left: calc(567.42 / 1904 * 100%); top: calc(876.98 / 1060 * 100%); }
.process-card-5 { left: calc(333 / 1904 * 100%); top: calc(544.88 / 1060 * 100%); }
.process-card-6 { left: calc(511.6 / 1904 * 100%); top: calc(204.42 / 1060 * 100%); }

/* ===== Timeline Section ===== */
.about-timeline-section {
  max-width: 840px;
  margin: 0 auto;
  padding: 80px 48px 0;
}

.timeline-headers {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.timeline-heading {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.education-heading {
  background-image: linear-gradient(94deg, rgba(12, 118, 5, 0.6), rgba(111, 193, 105, 0.6), rgba(12, 118, 5, 0.6));
}

.work-heading {
  background-image: linear-gradient(97deg, rgba(18, 65, 136, 0.6), rgba(47, 130, 255, 0.6), rgba(0, 50, 125, 0.6));
}

/* Timeline container */
.timeline-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(182, 182, 182, 0.6) 0px,
    rgba(182, 182, 182, 0.6) 7px,
    transparent 7px,
    transparent 14px
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,1) 23%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.3) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,1) 23%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.3) 100%
  );
  transform: translateX(-50%);
  transition: height 0.1s linear;
}

/* Timeline items */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 50%;
  padding-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.right {
  margin-left: 50%;
  padding-left: 38px;
  flex-direction: row;
}

.timeline-item.left {
  margin-right: 50%;
  padding-right: 38px;
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  top: 45px;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.revealed .timeline-dot {
  opacity: 1;
  transform: scale(1);
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.dot-blue {
  background: linear-gradient(135deg, rgba(18, 65, 136, 0.7), rgba(47, 130, 255, 0.7));
}

.dot-green {
  background: linear-gradient(135deg, rgba(12, 118, 5, 0.7), rgba(111, 193, 105, 0.7));
}

.timeline-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-role {
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.timeline-year {
  font-size: 18px;
  font-weight: 600;
  color: rgba(45, 45, 45, 0.5);
  letter-spacing: -0.36px;
}

.timeline-cert-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(45, 45, 45, 0.7);
  letter-spacing: -0.4px;
  margin-bottom: 0;
}

/* ===== About Page Scroll Animations ===== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Signature Animation ===== */
.about-signature {
  text-align: center;
}

.signature-img {
  width: 118px;
  height: 129px;
  clip-path: inset(0 100% 0 0);
}

.about-hero.in-view .signature-img {
  animation: signWrite 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

@keyframes signWrite {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ===== Gradient text helpers ===== */
.gradient-blue {
  background: linear-gradient(90deg, #2F82FF 0%, #2F82FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.gradient-blue-bold {
  background: linear-gradient(90deg, #2F82FF 0%, #2F82FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.48px;
}

/* ===== Section: Old Dashboard — scroll-reveal ===== */

/* Tall container gives sticky panel room to scroll through */
.old-dashboard-scroll-area {
  /* height is set by JS based on image natural height */
  position: relative;
  width: 100%;
}

/* Sticky viewport — locks in place while the area scrolls */
.old-dashboard-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 80px;
}

/* Entry heading — "Problems with the existing dashboard" — z-index 3, above image */
.old-dashboard-entry-title {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  /* JS drives opacity: starts 1, fades to 0 as scroll begins */
}

/* Beat 1 text — centred, revealed as image moves down */
.old-dashboard-text {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 88vw);
  text-align: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.old-dashboard-text-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 18px;
}

.old-dashboard-title-red {
  color: rgba(255, 0, 0, 0.75);
}

.old-dashboard-text-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

.old-dashboard-text-body strong {
  font-weight: 700;
}

/* Beat 2 text — left side, "Disconnected Account Information" */
.old-dashboard-text-2 {
  position: absolute;
  top: 50%;
  /* left driven by JS — starts behind the image, slides out left */
  transform: translateY(-50%);
  width: min(436px, 40vw);
  text-align: left;
  z-index: 1;           /* behind the image so it appears from beneath */
  opacity: 0;
  pointer-events: none;
  overflow: visible;
}

.old-dashboard-text-2-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
  white-space: nowrap;
}

.old-dashboard-text-2-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

/* Beat 3 text — right side, "Context-lacking Account Limits" */
.old-dashboard-text-3 {
  position: absolute;
  top: 50%;
  /* left driven by JS — starts behind image left edge, slides out right */
  transform: translateY(-50%);
  width: min(436px, 40vw);
  text-align: left;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.old-dashboard-text-3-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
  white-space: nowrap;
}

.old-dashboard-text-3-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

@media (max-width: 768px) {
  .old-dashboard-text-3 {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(320px, 88vw);
    text-align: center;
  }
  .old-dashboard-text-3-title {
    font-size: 18px;
    white-space: normal;
  }
  .old-dashboard-text-3-body {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Beat 4 text — left side, "Ambiguous Holidays" (mirrors beat 2) */
.old-dashboard-text-4 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(436px, 40vw);
  text-align: left;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.old-dashboard-text-4-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
  white-space: nowrap;
}

.old-dashboard-text-4-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

@media (max-width: 768px) {
  .old-dashboard-text-4 {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(320px, 88vw);
    text-align: center;
  }
  .old-dashboard-text-4-title { font-size: 18px; white-space: normal; }
  .old-dashboard-text-4-body  { font-size: 14px; line-height: 20px; }
}

/* Beat 5 text — centred below image, "Monotonous Recent Transactions" */
.old-dashboard-text-5 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 88vw);
  text-align: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.old-dashboard-text-5-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
}

.old-dashboard-text-5-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

@media (max-width: 768px) {
  .old-dashboard-text-5 { width: min(320px, 88vw); }
  .old-dashboard-text-5-title { font-size: 18px; }
  .old-dashboard-text-5-body  { font-size: 14px; line-height: 20px; }
}

/* Beat 6 text — right side, "Stagnant Number of Transactions" (mirrors beat 3) */
.old-dashboard-text-6 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(436px, 40vw);
  text-align: left;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.old-dashboard-text-6-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
  white-space: nowrap;
}

.old-dashboard-text-6-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

@media (max-width: 768px) {
  .old-dashboard-text-6 {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(320px, 88vw);
    text-align: center;
  }
  .old-dashboard-text-6-title { font-size: 18px; white-space: normal; }
  .old-dashboard-text-6-body  { font-size: 14px; line-height: 20px; }
}

/* Image frame — JS drives left/top/width/height absolutely */
.old-dashboard-frame {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(45, 45, 45, 0.10);
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(45, 45, 45, 0.15);
  overflow: hidden;
  line-height: 0;
  will-change: left, top, width, height;
}

.old-dashboard-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

@media (max-width: 768px) {
  .old-dashboard-entry-title {
    white-space: normal;
    width: 88vw;
    font-size: 18px;
  }
  .old-dashboard-text-2 {
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, 88vw);
    text-align: center;
  }
  .old-dashboard-text-2-title {
    font-size: 18px;
    white-space: normal;
  }
  .old-dashboard-text-2-body {
    font-size: 14px;
    line-height: 20px;
  }
}

/* ===== Section 2: Three Cards ===== */
.detail-three-cards {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.three-cards-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 80px;
}

.three-cards-grid {
  display: flex;
  gap: 40px;
  text-align: left;
}

.three-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.three-card-icon {
  width: 80px;
  height: 80px;
}

.three-card-icon svg {
  width: 80px;
  height: 80px;
}

.three-card-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.three-card-heading {
  font-size: 20px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.4px;
  line-height: normal;
}

.three-card-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
}

/* ===== Section 3: Essentials ===== */
.detail-essentials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 600px;
  overflow: hidden;
}

.essentials-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 auto;
}

.sparkle-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.sparkle-icon img {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
}

.essentials-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 328px;
}

.essentials-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  flex-shrink: 0;
}

.essentials-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid rgba(45, 45, 45, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 24px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  white-space: nowrap;
  box-shadow: 4px 4px 24px 0 rgba(45, 45, 45, 0.05);
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.essentials-pill.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===== Section 4: Word Cloud ===== */
.detail-word-cloud {
  padding-top: 30px;
  padding-bottom: 0;
  text-align: center;
}

.word-cloud-header {
  font-size: 18px;
  font-weight: 400;
  color: rgba(47, 130, 255, 0.75);
  letter-spacing: -0.36px;
  line-height: 25px;
  margin-bottom: 0;
}

.word-cloud-container {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: visible;
}

.word-item {
  position: absolute;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-item.in-view {
  opacity: var(--final-opacity, 0.75);
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
  cursor: default;
}

.word-item.js-active {
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===== Sections 5+6: Dashboard Sequence ===== */
.dashboard-sequence {
  position: relative;
  height: 350vh;
}

.dashboard-seq-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dashboard-seq-heading {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  white-space: nowrap;
}

.dashboard-seq-screen {
  position: relative;
  width: 90%;
  max-width: 1294px;
  opacity: 0;
  transform: scale(0.6);
  will-change: transform, opacity;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
}

.dashboard-seq-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-seq-expanded {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.85);
}

.dashboard-seq-text {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 463px;
  opacity: 0;
  filter: blur(8px);
  will-change: opacity, filter, transform;
}

.dashboard-seq-text-title {
  font-size: 24px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin-bottom: 16px;
}

.dashboard-seq-text-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 25px;
  letter-spacing: -0.36px;
  margin-bottom: 16px;
}

.dashboard-seq-text-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.4px;
  line-height: normal;
  margin-top: 24px;
  margin-bottom: 16px;
}

.dashboard-seq-icon-strip {
  margin-top: 24px;
}

.dashboard-seq-icon-strip img {
  max-width: 400px;
  height: auto;
  display: block;
}

/* Widget Expanded Overlay */
.widget-expanded {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  opacity: 0;
  transform: scale(0.3);
  transform-origin: top left;
  will-change: transform, opacity;
}

.widget-expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.widget-expanded-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-expanded-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(45, 45, 45, 0.5);
}

.widget-expanded-amount {
  font-size: 22px;
  font-weight: 700;
  color: #2d2d2d;
  letter-spacing: -0.02em;
}

.widget-expanded-bars svg {
  width: 24px;
  height: 24px;
}

.widget-expanded-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
}

.widget-expanded-row-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(45, 45, 45, 0.75);
}

.widget-expanded-row-value {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2d;
}

.widget-expanded-cta {
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  border: 1px solid rgba(45, 45, 45, 0.15);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  cursor: pointer;
  transition: background 0.2s ease;
}

.widget-expanded-cta:hover {
  background: rgba(45, 45, 45, 0.04);
}

/* ===== Widget Timeline Section ===== */
.wt-section {
  padding: 0 !important;
}

.wt-scroll-area {
  position: relative;
  width: 100%;
  /* height set by JS on desktop */
}

.wt-sticky {
  position: sticky;
  top: 52px; /* fixed header (~36px) + 16px gap */
  height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  background: #fff;
}

/* Spacer before the sticky section — gives room for the heading to blur in */
.wt-intro-spacer {
  height: 100px;
  width: 100%;
}

/* Single heading: blurs+scales in, then stays at top of sticky container */
.wt-heading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.56px;
  color: rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  /* start hidden — JS adds wt-heading--visible */
  opacity: 0;
  filter: blur(16px);
  transform: translateY(32px) scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wt-heading.wt-heading--visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.wt-heading-blue {
  font-size: 32px;
  font-weight: 700;
  color: rgba(47, 130, 255, 0.75);
}

.wt-heading-speaker {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Stage — fills remaining height */
.wt-stage {
  position: relative;
  flex: 1 1 0;
  width: 100%;
}

/* Each slide is absolute, fills the stage */
.wt-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 4vw, 80px);
  padding: 0 max(48px, calc((100% - 1120px) / 2 + 48px));
  box-sizing: border-box;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.45s ease, filter 0.45s ease;
  pointer-events: none;
}

.wt-slide--active {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.wt-slide-image {
  flex: 0 0 auto;
  width: min(55%, 647px);
}

.wt-slide-image img {
  display: block;
  width: 100%;
  height: auto;
}

.wt-slide-text {
  flex: 0 0 auto;
  width: min(35%, 362px);
}

.wt-slide-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  line-height: normal;
  margin: 0 0 16px;
}

.wt-slide-body {
  font-size: 16px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.32px;
  line-height: normal;
  margin: 0 0 16px;
}

.wt-slide-body:last-child {
  margin-bottom: 0;
}

/* Dots removed */
.wt-dots { display: none !important; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .wt-scroll-area {
    height: auto !important;
  }

  .wt-intro-spacer {
    display: none;
  }

  .wt-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .wt-heading {
    padding: 32px 20px 20px;
    font-size: 22px;
    white-space: normal;
    /* always visible on mobile — no blur-in */
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .wt-heading-blue {
    font-size: 24px;
  }

  .wt-heading-speaker {
    width: 32px;
    height: 32px;
  }

  .wt-stage {
    position: relative;
    height: auto;
    flex: none;
  }

  .wt-slide {
    position: relative;
    inset: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 20px;
    opacity: 0;
    filter: blur(0);
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: auto;
    border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  }

  .wt-slide.wt-mob-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .wt-slide--active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  .wt-slide-image {
    width: 100%;
    order: 1;
  }

  .wt-slide-text {
    width: 100%;
    order: 2;
  }

  .wt-dots {
    display: none;
  }
}

/* ===== Section 5: Dashboard Full ===== */
.detail-dashboard-full {
  text-align: center;
  padding: 60px 0 80px;
}

.dashboard-full-heading {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  margin-bottom: 48px;
}

.dashboard-full-screen {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
}

.dashboard-full-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Section 7: Hover Interaction ===== */
.detail-hover-interaction {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  padding: 60px 0 80px;
}

/* Images stacked on the LEFT */
.hover-int-images {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.hover-int-img {
  width: 458px;
  height: 282px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(45, 45, 45, 0.1);
  flex-shrink: 0;
}

/* Text on the RIGHT */
.hover-int-text {
  flex: 1;
  min-width: 0;
}

.hover-int-title {
  font-size: 24px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  margin-bottom: 16px;
}

.hover-int-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.4px;
  line-height: normal;
  max-width: 389px;
  margin: 28px 0 16px;
}

.hover-int-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 23px;
  letter-spacing: -0.36px;
  margin-bottom: 16px;
}

img.hover-int-icon-strip {
  margin-top: 28px;
  height: 101px;
  width: auto;
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: content-box;
}

/* ===== Section 6: Every Interaction is Intentional ===== */
.detail-every-interaction {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.every-int-content {
  position: absolute;
  left: 0;
  right: 57%;
  top: 43%;
  max-width: 397px;
  z-index: 2;
}

.every-int-heading {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: -0.48px;
  line-height: 1.3;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.every-int-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}

.every-int-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  line-height: 25px;
  letter-spacing: -0.36px;
}

.every-int-dashboard {
  margin-left: 43.1%;
  margin-top: 60px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.every-int-dashboard img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px 20px 0 0;
}

.every-int-feather {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.7) 50%, #ffffff 100%);
  z-index: 3;
  pointer-events: none;
}

/* ===== Section 7: Sculpting Art in Interface Design ===== */
.detail-sculpting-art {
  text-align: center;
  padding: 60px 0 80px;
}

.sculpting-art-heading {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: -0.48px;
  margin-bottom: 48px;
}

.sculpting-art-heading em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, #2F82FF 0%, #B8D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sculpting-art-screen {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sculpting-art-screen img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.lightbox.light-theme .lightbox-backdrop {
  background: rgba(255, 255, 255, 0.95);
}

.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  will-change: transform;
  cursor: grab;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  max-width: 92vw;
  max-height: 88vh;
}

.lightbox-img-wrap.dragging {
  cursor: grabbing;
  transition: none;
}

.lightbox-img-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ===== Mobile Layout (≤ 768px) ===== */
@media (max-width: 768px) {

  /* ── Hide desktop header on the home screen ── */
  .header:not(.detail-mode) {
    display: none;
  }

  /* ── Mobile home: full-viewport flex column, centered ── */
  .scroll-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;        /* left-align children */
    overflow-x: hidden;
    overflow-y: hidden;
    /* height/top/left/width stay from base rule (fixed, 100%, 100%) */
  }

  /* Identity + nav block */
  .mobile-home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    padding: 0 32px;
    gap: 0;
  }

  .mhc-name {
    font-size: 26px;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.52px;
    line-height: 1.25;
  }

  .mhc-year {
    font-size: 26px;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.52px;
    line-height: 1.25;
    min-height: 1.25em; /* keeps space while JS fills it */
  }

  .mhc-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 26px;
  }

  .mhc-link {
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    letter-spacing: -0.28px;
    line-height: 1.9;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
  }

  .mhc-link:hover {
    color: #000;
  }

  /* Images row — sits directly below the identity block */
  .scroll-track {
    flex-shrink: 0;
    height: auto;         /* don't fill 100% on mobile */
    padding-top: 32px;
    padding-bottom: 8px;
    align-items: center;
  }

  /* Smaller mockup images on mobile */
  .device-mockup img {
    width: clamp(160px, 52vw, 240px);
  }

  /* First group: left padding matches identity padding */
  .project-group:first-child {
    padding-left: 32px;
  }

  .project-group:last-child {
    padding-right: 32px;
  }

  .detail-grid {
    padding: 0 16px;
  }

  /* --- Header nav: stack vertically on mobile (detail/about mode) --- */
  .header-nav {
    flex-direction: column;
    gap: 4px;
    padding-top: 0;
    align-items: flex-end;
  }

  .header-nav a {
    min-height: unset;
    height: auto;
    padding: 0;
  }

  /* --- Global mobile body text reduction --- */
  .detail-hero-description,
  .detail-hero-results,
  .three-card-body,
  .detail-section-body,
  .every-int-body,
  .hover-int-body {
    font-size: 16px;
    line-height: 22px;
  }

  /* --- Hero: image on top, text below full-width --- */
  .detail-hero {
    flex-direction: column-reverse;
    gap: 50px;
    padding-top: 40px;
    padding-bottom: 48px;
    min-height: unset;
  }

  .detail-hero-text {
    flex: unset;
    max-width: 100%;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sculpting-art-heading em {
    font-size: inherit;
  }

  .detail-hero-image {
    width: 100%;
  }

  .detail-hero-image img {
    width: 100%;
    max-width: 100%;
  }

  /* --- Three cards: stack vertically, centered --- */
  .three-cards-grid {
    flex-direction: column;
    gap: 32px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .three-cards-title {
    margin-bottom: 40px;
  }

  .detail-three-cards {
    padding-bottom: 40px;
  }

  /* --- Essentials: title/copy on top, pills below --- */
  .detail-essentials {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-height: unset;
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .essentials-left {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .essentials-text {
    gap: 4px;
    text-align: center;
  }

  .essentials-text .detail-section-title {
    margin-bottom: 0;
    text-align: center;
  }

  .essentials-text .detail-section-body {
    text-align: center;
  }

  .essentials-right {
    display: grid;
    width: 100%;
    flex-wrap: nowrap;
    gap: 12px;
    text-align: left;
  }

  .essentials-pill {
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .gradient-blue-bold {
    font-size: 18px;
  }

  .word-cloud-header {
    font-size: 16px;
    line-height: 22px;
  }

  /* --- Word cloud: scale down to fit mobile viewport --- */
  .detail-word-cloud {
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
    padding: 0;
  }

  .word-cloud-container {
    width: 100vw;
    height: 560px;
    overflow: visible;
    transform: scale(0.5);
    transform-origin: center top;
    margin-bottom: -280px;
  }

  /* --- Every Interaction: content on top, dashboard below, heading at bottom --- */
  .detail-every-interaction {
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    padding-top: 40px !important;
    padding-bottom: 0 !important;
  }

  .every-int-content {
    position: static;
    width: 100%;
    max-width: 100%;
    order: 1;
    margin: 0 0 24px;
    text-align: left;
  }

  .every-int-heading {
    position: static;
    bottom: unset;
    left: unset;
    right: unset;
    z-index: unset;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 6px;
    font-size: 20px;
    max-width: none;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .every-int-content .every-int-body {
    text-align: left;
  }

  .every-int-dashboard {
    margin-left: -16px;
    margin-right: -16px;
    margin-top: 0;
    order: 2;
    width: calc(100% + 32px);
    border-radius: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
  }

  .every-int-dashboard img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: bottom center;
    border-radius: 0;
  }

  .every-int-feather {
    height: 80px;
  }

  /* --- Hover Interaction: images side-by-side on top, text below --- */
  .detail-hover-interaction {
    flex-direction: column;
    gap: 32px;
  }

  .hover-int-images {
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }

  .hover-int-img {
    width: calc(50% - 6px);
    height: auto;
    flex-shrink: 1;
  }

  .hover-int-text {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hover-int-subtitle {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  img.hover-int-icon-strip {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    height: auto;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Sculpting art: smaller radius on mobile --- */
  .sculpting-art-screen {
    border-radius: 10px;
  }

  .detail-sculpting-art {
    padding-bottom: 20px;
  }

  /* --- Process animation: square canvas on mobile, scroll animation still runs --- */
  .about-process-section {
    gap: 40px;
  }

  .process-scroll-area {
    height: 300vh;
  }

  .process-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .process-canvas {
    width: min(98vw, 90vh);
    aspect-ratio: 1 / 1;
    transform: scale(1.8);
    transform-origin: 50% 29%;
  }

  .process-card {
    font-size: clamp(5px, 1.7vw, 8px);
  }

  /* Remap vertical positions onto square canvas (divide by 1904 instead of 1060) */
  .process-rotating {
    top: calc(71.86 / 1904 * 100%);
    height: calc(955.814 / 1904 * 100%);
  }

  /* Center image: align to the visual center of the circle on the square canvas */
  .process-center-img {
    top: calc((71.86 + 955.814 / 2) / 1904 * 100%);
  }

  .process-blur-glow {
    top: calc((71.86 + 955.814 / 2 - 656 * 1.3476 / 2) / 1904 * 100%);
    height: calc((656 * 1.3476) / 1904 * 100%);
  }

  .process-card-0 { top: calc(30 / 1904 * 100%); }
  .process-card-1 { top: calc(205.81 / 1904 * 100%); }
  .process-card-2 { top: calc(544.88 / 1904 * 100%); }
  .process-card-3 { top: calc(883.95 / 1904 * 100%); }
  .process-card-4 { top: calc(876.98 / 1904 * 100%); }
  .process-card-5 { top: calc(544.88 / 1904 * 100%); }
  .process-card-6 { top: calc(204.42 / 1904 * 100%); }

  /* --- Dashboard sequence: simplify for mobile --- */
  .dashboard-sequence {
    height: auto;
  }

  .dashboard-seq-sticky {
    position: relative;
    height: auto;
    padding: 40px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
  }

  .dashboard-seq-screen {
    width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .dashboard-seq-text {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .dashboard-seq-heading {
    position: static;
    transform: none;
    text-align: center;
    white-space: normal;
    margin-bottom: 24px;
  }

}

/* ===== PROBLEM SECTION ===== */

.problem-section {
  padding: 0;
}

.problem-header {
  padding: 80px 120px 48px;
  text-align: center;
}

.problem-section-title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 0;
}

.problem-title-highlight {
  color: #2F82FF;
}

/* Hero screenshot */
.problem-hero-img-wrap {
  padding: 0 96px 60px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-hero-img-wrap.in-view {
  opacity: 1;
  transform: translateY(0);
}

.problem-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 4px 48px rgba(0,0,0,0.10);
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Shared fade-in for all items */
.problem-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Full-bleed layout (Repetitive Filters, Recent Transactions) */
.problem-item--full {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.problem-item-img-wrap--full {
  width: 100%;
}

.problem-item-img-wrap--full .problem-item-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.problem-item-text--center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 700px;
  padding: 0 20px;
  z-index: 2;
}

.problem-text--top {
  top: 40px;
}

.problem-text--bottom {
  bottom: 40px;
}

/* Side-by-side split layout */
.problem-item--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 460px;
  overflow: hidden;
}

.problem-item-img-wrap {
  overflow: hidden;
  background: #f7f7f7;
}

.problem-img--left {
  order: 1;
}
.problem-img--right {
  order: 2;
}
.problem-text--left {
  order: 1;
  padding: 60px 60px 60px 80px;
}
.problem-text--right {
  order: 2;
  padding: 60px 80px 60px 60px;
}

.problem-item-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.problem-item-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-item-title {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 0;
}

.problem-item-body {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: var(--text-secondary, #555);
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .problem-header {
    padding: 48px 20px 28px;
  }

  .problem-hero-img-wrap {
    padding: 0 20px 32px;
  }

  .problem-item--split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .problem-img--left,
  .problem-img--right {
    order: 1;
  }
  .problem-text--left,
  .problem-text--right {
    order: 2;
    padding: 24px 20px;
  }

  .problem-item-text--center {
    position: static;
    transform: none;
    text-align: left;
    width: auto;
    max-width: 100%;
    padding: 20px;
  }

  .problem-text--top,
  .problem-text--bottom {
    position: static;
  }
}

/* ===== USER INTENTIONS SECTION ===== */

.user-intentions-section {
  padding: 0;
}

/* Scroll area — height set by JS on desktop */
.intention-scroll-area {
  position: relative;
}

/* Sticky frame */
.intention-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
}

/* Left column — houses the step panel; intro sits on top via absolute positioning */
.intention-left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 80px 60px 120px;
  position: relative;
  overflow: hidden;
}

/* Intro block — absolutely positioned over the left column area */
.intention-intro {
  position: absolute;
  top: 50%;
  left: 120px;
  right: calc(380px + 80px); /* mirror left column width minus right column */
  transform: translateY(-50%);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  opacity: 1;
  filter: blur(0px);
  transition: opacity 0.45s ease, filter 0.45s ease;
  pointer-events: auto;
  z-index: 2;
}

.intention-intro.hidden {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.intention-intro-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.intention-intro-heading {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-primary, #1a1a1a);
}

.intention-intro-body {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  color: var(--text-secondary, #666);
  margin: 0;
}

/* Step panel — steps layer over each other, blur in/out */
.intention-panel {
  position: relative;
  width: 100%;
  min-height: 160px;
}

.intention-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.45s ease, filter 0.45s ease;
  pointer-events: none;
}

.intention-step.active {
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

.intention-step-title {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 12px;
}

.intention-step-body {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  color: var(--text-secondary, #666);
  margin: 0;
  max-width: 400px;
}

/* Right column — pill list */
.intention-right {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 120px 60px 40px;
}

.intention-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 260px;
}

.intention-pill {
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.04);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  cursor: default;
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease, transform 0.4s ease, font-weight 0.1s,
              opacity 0.5s ease var(--pill-delay, 0ms),
              filter 0.5s ease var(--pill-delay, 0ms);
  white-space: nowrap;
}

.intention-pill.pill-hidden {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
}

.intention-pill.pill-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

.intention-pill.active {
  color: #fff;
  background: linear-gradient(0deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.40) 100%), #2F82FF;
  border-color: rgba(47, 130, 255, 0.60);
  border-width: 2px;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 4px 4px 24px 0 rgba(45, 45, 45, 0.05);
  transform: translateX(-4px) scale(1.02);
}

/* Mobile — scroll-driven pill highlight (mirrors desktop behaviour) */
@media (max-width: 768px) {

  /* Sticky frame: sits below fixed header, fills remaining viewport, no internal scroll */
  .intention-sticky {
    top: 60px;
    height: calc(100vh - 60px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  /* Hide desktop columns — mobile uses im-pill-list + im-body-wrap */
  .intention-left,
  .intention-right {
    display: none;
  }

  /* Intro: fixed header row at top of sticky frame, always visible */
  .intention-intro,
  .intention-intro.hidden {
    position: static !important;
    transform: none !important;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 14px;
    z-index: auto;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .intention-intro-icon img { width: 30px; height: 30px; }
  .intention-intro-heading  { font-size: 15px; margin-bottom: 2px; }
  .intention-intro-body     { font-size: 13px; line-height: 1.45; }

  /* ── Single flex column: pills + body text together, ordered by JS ── */
  .im-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px 24px;
    overflow: hidden;         /* no internal scrolling */
    flex-shrink: 0;
  }

  /* Pill */
  .im-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    background: #fff;
    border: 1.5px solid rgba(45, 45, 45, 0.10);
    box-shadow: 2px 2px 12px 0 rgba(45, 45, 45, 0.04);
    white-space: nowrap;
    text-align: center;
    transition: color 0.35s ease, background 0.35s ease,
                border-color 0.35s ease, box-shadow 0.35s ease,
                padding 0.35s ease, border-radius 0.35s ease,
                font-size 0.35s ease;
  }

  /* Hidden state before entrance */
  .im-pill.im-pill-hidden {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.88);
  }

  /* Entrance animation — staggered per pill via --im-i */
  .im-pill.im-pill-enter {
    animation: im-pill-in 0.4s cubic-bezier(0.34, 1.2, 0.64, 1)
               calc(var(--im-i, 0) * 60ms) both;
  }

  @keyframes im-pill-in {
    from { opacity: 0; filter: blur(8px); transform: scale(0.88); }
    to   { opacity: 1; filter: blur(0);   transform: scale(1); }
  }

  /* Active pill — Figma blue gradient */
  .im-pill.active {
    color: #fff;
    background: linear-gradient(0deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.40) 100%), #2F82FF;
    border-color: rgba(47, 130, 255, 0.60);
    border-width: 2px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    box-shadow: 4px 4px 24px 0 rgba(45, 45, 45, 0.05);
  }

  /* Body text — slots after active pill via JS-set order */
  .im-body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    margin: 4px 0;
    padding: 0 4px;
    opacity: 0;               /* hidden until animation fires */
    width: 100%;
  }

  .im-body.im-body-animate {
    animation: im-body-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes im-body-in {
    from { opacity: 0; filter: blur(6px); transform: translateY(6px); }
    to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
  }
}

/* ===== ANNOTATION SECTION ===== */

.annotation-section {
  position: relative;
  padding: 0;
}

.annotation-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.annotation-image-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 48px 80px;
  gap: 20px;
}

.annotation-img-wrap {
  position: relative;
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.10);
}

.annotation-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.annotation-spotlight {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
  transition: clip-path 0.5s ease;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 12px;
}

.annotation-highlight {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: top 0.5s ease, left 0.5s ease, width 0.5s ease, height 0.5s ease, opacity 0.3s;
  box-shadow: 0 0 0 9999px transparent;
}

.annotation-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.annotation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.annotation-dot.active {
  background: #1a1a1a;
  transform: scale(1.25);
}

.annotation-panel-col {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 80px 80px 80px 40px;
}

.annotation-progress-track {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-right: 16px;
}

.annotation-progress-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,0.1);
}

.annotation-progress-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0%;
  background: #1a1a1a;
  transition: height 0.4s ease;
}

.annotation-progress-dot {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  transition: top 0.4s ease;
}

.annotation-panel {
  flex: 1;
  position: relative;
  min-height: 120px;
}

.annotation-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.annotation-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.annotation-step-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.4);
  margin-bottom: 12px;
}

.annotation-step-desc {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
  color: var(--text-primary, #1a1a1a);
  margin: 0;
}

/* Mobile annotation: no sticky, stacked */
@media (max-width: 768px) {
  .annotation-section {
    height: auto !important;
  }

  .annotation-sticky {
    position: static;
    height: auto;
    flex-direction: column;
  }

  .annotation-image-col {
    padding: 32px 20px 16px;
  }

  .annotation-panel-col {
    width: 100%;
    padding: 16px 20px 40px;
    flex-direction: column;
    gap: 0;
  }

  .annotation-progress-track {
    display: none;
  }

  .annotation-step {
    position: static;
    opacity: 1;
    transform: none;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .annotation-step:first-child {
    border-top: none;
  }
}

/* ===== Global Transfer Project Sections ===== */

/* Shared heading */
.gt-section-heading {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(0,0,0,0.75);
  margin: 0 0 40px 0;
  line-height: 1.25;
}
.gt-section-heading .gradient-blue-inline {
  background: linear-gradient(90deg, rgb(47,130,255) 0%, rgb(184,212,255) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gt-section-heading .gradient-blue-bold {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.2) 100%), linear-gradient(90deg, rgb(47,130,255) 0%, rgb(47,130,255) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1em;
}
.gt-section-heading .gt-complexity {
  font-weight: 700;
  font-size: 1.1em;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.2) 100%), linear-gradient(90deg, rgb(45,45,45) 0%, rgb(45,45,45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gt-section-heading .gt-simplicity {
  font-weight: 700;
  font-size: 1.1em;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.2) 100%), linear-gradient(90deg, rgb(47,130,255) 0%, rgb(47,130,255) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Relevances cards ── */
.gt-relevances {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gt-relevances .gt-section-heading {
  text-align: center;
}
.gt-rel-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 500px;
  align-items: center;
}
/* Blur-in/out animation — JS adds .gt-card-visible / removes it */
.gt-rel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 14px 34px rgba(45,45,45,0.10);
  width: 100%;
  text-align: center;

  /* Start blurred + faded */
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
.gt-rel-card.gt-card-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}
.gt-rel-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gt-rel-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.gt-rel-icon-emoji {
  font-size: 38px;
  line-height: 1;
}
.gt-rel-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.gt-rel-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(0,0,0,0.75);
  letter-spacing: -0.02em;
  margin: 0;
}
.gt-rel-body {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0,0,0,0.65);
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin: 0;
}

/* ── Market stats + four pillars ── */
.gt-market-stats {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gt-market-stats .gt-section-heading {
  text-align: center;
}
.gt-stats-table {
  display: inline-flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(45,45,45,0.1);
  margin-bottom: 56px;
}
.gt-stats-label {
  background: white;
  padding: 10px 20px;
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  letter-spacing: -0.02em;
  text-align: center;
  border-bottom: 1px solid rgba(45,45,45,0.1);
}
.gt-stats-row {
  display: flex;
  background: #f3f2f7;
  justify-content: center;
}
.gt-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 32px;
  align-items: center;
  border-right: 1px solid rgba(45,45,45,0.1);
}
.gt-stat:last-child {
  border-right: none;
}
.gt-stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #000;
}
.gt-stat-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.gt-pillars-intro {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  letter-spacing: -0.02em;
  margin: 0 0 28px 0;
  text-align: center;
}
.gt-pillars-intro strong {
  font-weight: 700;
}
.gt-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}
/* Wrapper so mesh blobs render behind the white card without bleeding through it */
.gt-pillar-wrap {
  position: relative;
  border-radius: 22px;
  display: flex;          /* stretch inner .gt-pillar to fill the grid cell */
  flex-direction: column;
}

/* Animated mesh blobs sit on the wrapper, fully behind the card */
.gt-pillar-wrap::before,
.gt-pillar-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(26px);
  opacity: 0.6;
  pointer-events: none;
}

.gt-pillar-wrap::before {
  width: 70%;
  height: 70%;
  background: var(--pillar-accent, rgba(47,130,255,0.25));
  top: -20%;
  left: -12%;
  animation: gt-mesh-a 6s ease-in-out infinite alternate;
}

.gt-pillar-wrap::after {
  width: 60%;
  height: 60%;
  background: var(--pillar-accent, rgba(47,130,255,0.25));
  bottom: -20%;
  right: -12%;
  animation: gt-mesh-b 7s ease-in-out infinite alternate;
}

@keyframes gt-mesh-a {
  0%   { transform: translate(0,    0)    scale(1);    }
  33%  { transform: translate(30%,  20%)  scale(1.15); }
  66%  { transform: translate(10%,  40%)  scale(0.9);  }
  100% { transform: translate(40%,  10%)  scale(1.2);  }
}

@keyframes gt-mesh-b {
  0%   { transform: translate(0,    0)    scale(1);    }
  33%  { transform: translate(-25%, -15%) scale(1.1);  }
  66%  { transform: translate(-40%, -30%) scale(0.85); }
  100% { transform: translate(-15%, -40%) scale(1.15); }
}

.gt-pillar {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex: 1;              /* fill the wrap's height */
  position: relative;
  z-index: 1;           /* sits above the blobs on the wrapper */
  box-shadow:
    10px 10px 34px var(--pillar-accent, rgba(47,130,255,0.15)),
    0 0 0 0.5px color-mix(in srgb, var(--pillar-accent, rgba(47,130,255,0.25)) 100%, transparent);
}
.gt-pillar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gt-pillar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gt-pillar-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0,0,0,0.75);
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
}
.gt-pillar-body {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* ── Design process cycles ── */
.gt-design-process {
  padding: 60px 0;
}
.gt-dp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
}
.gt-dp-cycle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 16px;
  background: #f9f9fb;
  border: 1px solid rgba(45,45,45,0.08);
}
.gt-dp-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gt-dp-blip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(45,45,45,0.2);
  flex-shrink: 0;
}
.gt-dp-blip--active {
  background: rgb(47,130,255);
  box-shadow: 0 0 0 3px rgba(47,130,255,0.2);
}
.gt-dp-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(45,45,45,0.5);
}
.gt-dp-step--active .gt-dp-label {
  color: rgba(45,45,45,0.9);
}
.gt-dp-body {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.65);
  line-height: 1.55;
  letter-spacing: -0.01em;
  padding-left: 22px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .gt-rel-cards {
    max-width: 100%;
  }
  .gt-pillars-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .gt-dp-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .gt-stats-row {
    flex-direction: column;
  }
  .gt-stat {
    border-right: none;
    border-bottom: 1px solid rgba(45,45,45,0.1);
  }
  .gt-stat:last-child {
    border-bottom: none;
  }
}

/* ===== Liquid Glass Cursor (desktop only) ===== */

/* Outer — handles position + physics deformation via JS transform */
#lqCursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.15s ease;
  opacity: 0;
}

/*
  Inner — glass lens visual.
  The magnify effect is achieved by scaling the inner slightly LARGER than
  the outer box (scale > 1) so it peeks past the edges like a convex lens,
  while backdrop-filter zooms/saturates what's behind it.
*/
#lqCursorInner {
  width: 100%;
  height: 100%;
  border-radius: 50%;

  /* Very transparent fill — let content read through clearly */
  background:
    radial-gradient(ellipse 65% 35% at 46% 20%,
      rgba(255,255,255,0.42) 0%,
      rgba(255,255,255,0.04) 58%,
      transparent 100%),
    rgba(160, 180, 210, 0.07);

  /*
    Magnify effect: scale(1.18) makes the backdrop-filter "window" larger
    than the physics bounding box — content behind reads as slightly zoomed.
    brightness >1 + saturate gives the classic lens colour pop.
  */
  backdrop-filter: blur(0.5px) saturate(160%) brightness(1.08) contrast(1.04);
  -webkit-backdrop-filter: blur(0.5px) saturate(160%) brightness(1.08) contrast(1.04);

  /* Depth shadows */
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.70),
    inset 0 -1px 3px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.09),
    0 16px 48px rgba(0,0,0,0.05),
    0 2px 6px rgba(0,0,0,0.07);

  /* Lens scale — slightly oversize so it acts like a convex lens */
  transform: scale(1.18);
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Precision — shrink AND reduce lens scale */
#lqCursor.precision #lqCursorInner {
  transform: scale(0.48);
}

/* Desktop with real pointer — show cursor, hide native */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  #lqCursor { display: block; }
}
