.about-top-wrap { position: relative; }

/* Thought-bubble trail — three hollow circles, growing from the photo's
   top-right corner up toward the title. Sits above the image and text. */
.think-dots { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.think-dot {
  position: absolute;
  border: 2.5px solid rgba(240,237,230,0.8);
  border-radius: 50%;
}

.think-dot-1 { width: 10px; height: 10px; top: 76vh; left: 39vw; }
.think-dot-2 { width: 18px; height: 18px; top: 69vh; left: 44vw; }
.think-dot-3 { width: 30px; height: 30px; top: 55vh; left: 47vw; }

/* ── PROJECT HEADER ── */
.project-header {
  padding: 14vh 5vw 8vh;
  background: var(--bg);
}

.project-back {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
  cursor: none;
  margin-bottom: 4rem;
}

.project-back:hover { color: var(--text); gap: 0.9rem; }

.project-back-arrow { color: var(--accent); }

.project-header-meta { max-width: 760px; }

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 800; line-height: 0.98;
  letter-spacing: -0.04em; color: var(--text);
  margin: 1rem 0 1.5rem;
  overflow-wrap: break-word;
}

.project-desc {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.75; max-width: 540px;
}

/* ── PROJECT INFO ROW ── */
.project-info {
  display: flex; flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.project-info-item {
  display: flex; flex-direction: column;
  gap: 0.5rem;
}

.project-info-label {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}

.project-info-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.project-info-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color 0.3s ease;
  cursor: none;
}

.project-info-link:hover { color: var(--accent); }

.project-info-item.is-wide {
  flex: 1 1 100%;
  max-width: 640px;
}

.project-info-value.is-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-info-note {
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── FULL-WIDTH IMAGE STACK ── */
.project-gallery {
  background: var(--bg);
  display: flex; flex-direction: column;
  gap: 4px;
  padding-bottom: 6vh;
}

.project-image {
  width: 100%;
  line-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

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

/* Placeholder state — shown until real files are dropped into
   images/portfolio/grow-by-visuals/ with matching filenames */
.project-image.is-missing {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border);
}

.project-image.is-missing img { display: none; }

.project-image.is-missing::after {
  content: 'Image not found — check the file path in this page\'s <img> tags';
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--text-dim);
  text-align: center;
  padding: 0 2rem;
}

/* ── ABOUT PAGE — IMMERSIVE HERO + STORY ── */
.about-hero {
  background: var(--bg);
  padding: 0 5vw 8vh;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8vw; align-items: center;
}

.about-hero-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.about-hero-image .about-frame {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1030 0%, #0D0B1A 50%, #0a0a14 100%);
}

.about-hero-image .about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ── SPOTLIGHT CARD ── */
/* Ported from the React SpotlightCard pattern into plain CSS custom
   properties — js/about-page.js writes --mouse-x/--mouse-y on pointermove. */
.card-spotlight {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2rem;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(139, 95, 163, 0.25);
}

.about-hero-copy {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: center;
}

#heroSpotlightCard,
#storySpotlightCard {
  background: linear-gradient(155deg, #b088c9 0%, var(--accent) 45%, #4f3560 100%);
  border-color: var(--accent);
  --spotlight-color: rgba(255, 255, 255, 0.35);
}

#heroSpotlightCard .about-hero-title,
#heroSpotlightCard .project-desc,
#storySpotlightCard .about-story-text {
  color: var(--text);
}

.about-story-card {
  padding: 2.5rem;
}

.about-story-card .about-story-text {
  position: relative; z-index: 1;
  font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem;
}

.about-story-card .about-story-text:last-child { margin-bottom: 0; }

.card-spotlight::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-spotlight:hover::before,
.card-spotlight:focus-within::before {
  opacity: 1;
}

.about-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}

.about-hero .project-desc {
  color: var(--accent);
  position: relative; z-index: 1;
}

.about-story {
  background: var(--bg);
  padding: 4vh 5vw 14vh;
}

.about-story-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-story-text {
  font-size: 1.15rem; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 2rem;
}

.about-story-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--text);
  text-transform: uppercase; text-align: center;
  margin: 4rem 0 1rem;
}

/* ── 3D LOCATION PIN ── */
/* A card floats down from a beam-and-dot anchor on hover, ported from the
   Aceternity "3D Pin" pattern into plain CSS (no React/Framer Motion here). */
.pin-3d {
  display: flex; flex-direction: column; align-items: center;
  margin: 1rem 0 3.5rem;
  cursor: pointer;
}

.pin-3d-perspective {
  perspective: 1200px;
  padding-bottom: 1.5rem;
}

.pin-3d-card {
  width: min(22rem, 80vw);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(139,95,163,0.18) 0%, rgba(13,11,26,0.9) 60%);
  box-shadow: 0 30px 60px -20px rgba(139,95,163,0.35);
  transform: perspective(1200px) rotateX(42deg) scale(0.82);
  transform-origin: bottom center;
  opacity: 0.55;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.6s ease;
}

.pin-3d:hover .pin-3d-card,
.pin-3d:focus-visible .pin-3d-card {
  transform: perspective(1200px) rotateX(0deg) scale(1);
  opacity: 1;
  box-shadow: 0 40px 80px -20px rgba(139,95,163,0.55);
}

.pin-3d-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin: 0 0 0.5rem;
}

.pin-3d-desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.6; margin: 0 0 1.25rem;
}

.pin-3d-map {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139,95,163,0.35), rgba(139,95,163,0.08));
}

.pin-3d-map .map-dot {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(240,237,230,0.4);
  transform: translate(-50%, -50%);
}

.pin-3d-marker {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(139,95,163,0.35), 0 0 16px var(--accent-glow);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pin-3d-marker::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
  animation: pin-marker-ping 2s ease-out infinite;
}

@keyframes pin-marker-ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.pin-3d-point-container {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}

.pin-3d-beam {
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--accent) 70%, var(--accent));
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.pin-3d:hover .pin-3d-beam,
.pin-3d:focus-visible .pin-3d-beam { opacity: 1; }

.pin-3d-ring {
  position: absolute; top: 3rem; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: pin-marker-ping 2s ease-out infinite;
}

.pin-3d-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.pin-3d-status {
  margin-top: 0.75rem;
  display: flex; align-items: center; gap: 0.55rem;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

.pin-3d-status-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61,220,132,0.7);
}

.pin-3d-status-dot::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid #3ddc84;
  opacity: 0.6;
  animation: pin-marker-ping 2s ease-out infinite;
}

.pin-3d-time {
  margin-top: 0.4rem;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* On this page, Process directly continues the story above it — no page
   break, so it needs far less top air than its homepage placement. */
.about-story + #process { padding-top: 0; margin-top: -8vh; }

/* ── SCROLL STACK — Process steps ── */
/* Ported from the React ScrollStack component in window-scroll mode: cards
   pin and scale as the page scrolls past them, driven by js/scroll-stack.js. */
.scroll-stack-scroller {
  position: relative;
  width: 100%;
}

.scroll-stack-inner {
  padding-bottom: 40vh;
}

.scroll-stack-card {
  position: relative;
  transform-origin: top center;
  will-change: transform, filter;
  backface-visibility: hidden;
  background: linear-gradient(155deg, #b088c9 0%, var(--accent) 45%, #4f3560 100%);
  border: 1px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  padding: 3rem;
  box-sizing: border-box;
  --spotlight-color: rgba(255, 255, 255, 0.35);
}

.scroll-stack-card .step-num,
.scroll-stack-card .step-title,
.scroll-stack-card .step-desc {
  color: var(--text);
}

.scroll-stack-card .step-num { margin-bottom: 1.25rem; }

.scroll-stack-end {
  width: 100%;
  height: 1px;
}

/* ── CURSOR GRID — immersive page background ── */
/* Fixed behind everything (z-index:-1, so it sits below the default
   stacking level of normal content — no need to touch other elements'
   z-index). pointer-events:none keeps the page fully clickable through it;
   js/cursor-grid.js tracks the pointer on window instead. */
.cursor-grid-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}

.cursor-grid-bg__canvas {
  display: block;
  width: 100%; height: 100%;
}

/* The grid is this page's background, so its own sections need to go
   transparent to let it show through — everywhere else on the site these
   same classes keep their solid backgrounds. body itself stays on the
   default var(--bg): if it goes transparent too, the browser paints the
   root canvas white behind even a z-index:-1 layer, since that root-canvas
   fill happens outside normal stacking order. */
body.about-page .project-header,
body.about-page .about-hero,
body.about-page .about-story,
body.about-page #process,
body.about-page .project-next {
  background: transparent;
}

/* ── NEXT / BACK LINK ── */
.project-next {
  background: var(--bg);
  padding: 10vh 5vw 12vh;
  text-align: center;
}

.project-next-link {
  display: inline-block;
  text-decoration: none;
  cursor: none;
}

.project-next-link .section-label {
  justify-content: center;
}

.project-next-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.3s ease;
}

.project-next-link:hover .project-next-title { color: var(--accent); }

@media (max-width: 700px) {
  .project-header { padding: 12vh 6vw 6vh; }
  .project-info { gap: 2rem; }
  .about-hero { grid-template-columns: 1fr; gap: 2rem; }

  /* Second row: mockup photo before the story text on mobile. */
  #aboutSecondImage { order: 1; }
  #storySpotlightCard { order: 2; }

  /* Stacked mobile layout puts the title directly above the full-width
     photo — recompute the trail for that much tighter gap. */
  .think-dot-1 { width: 10px; height: 10px; top: 43vh; left: auto; right: 20vw; }
  .think-dot-2 { width: 18px; height: 18px; top: 37vh; left: auto; right: 16vw; }
  .think-dot-3 { width: 30px; height: 30px; top: 32vh; left: auto; right: 26vw; }
}

@media (max-width: 768px) {
  /* Project titles with a long single word ("Gereedschap Centrum") don't
     fit at the desktop clamp floor (2.6rem) — the browser can't wrap
     within a word, so it either overflows (forcing mobile browsers to
     auto-zoom the whole page wider) or breaks the word mid-letter. */
  .project-title { font-size: clamp(1.6rem, 8vw, 6rem); }
}
