/* ============================================
   ABOUT PAGE STYLES — Tight, Editorial Layout
   ============================================ */

.about-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: var(--space-lg);
}

/* ─── HERO TITLE ────────────────────────────── */
.about-hero {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Dot + "ABOUT ME" label — matches projects page "(dot) MY PROJECTS" */
.about-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.about-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* Title — mixed typography matching projects page size */
.about-title {
  font-size: clamp(1.6rem, 3.8vw, 3rem);   /* exactly matches .projects-hero-title */
  line-height: 1.22;
  max-width: none;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* "Somewhere", "between", "and" — Times New Roman, white, upright */
.about-title .title-plain {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 400;
  font-style: normal;
  color: var(--text-primary);
}

/* "chaos,", "creativity,", "caffeine." — Playfair italic, pink, glowing */
.about-title .title-cursive {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  text-shadow:
    0 0 30px rgba(232, 160, 191, 0.5),
    0 0 70px rgba(232, 160, 191, 0.22),
    0 0 140px rgba(232, 160, 191, 0.1);
}

/* ─── TEXT-ONLY SECTIONS ────────────────────── */
.story-section {
  margin-bottom: 2.5rem;              /* was --space-2xl (8rem) → now 2.5rem */
}

.story-text {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.82;
  max-width: 640px;
}

.story-text p {
  margin-bottom: 1rem;
}

.story-text .highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.story-text .accent {
  color: var(--accent);
  font-style: italic;
}

/* Pull-quote line */
.story-text .big-line {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-primary);
  line-height: 1.5;
  display: block;
  margin: 1rem 0;
}

/* ─── IMAGE + TEXT PAIRS ────────────────────── */
.story-with-image {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-lg);
  align-items: start;                 /* start — so caption sits right under image */
  margin: 2.5rem 0;
}

.story-with-image.reverse {
  direction: rtl;
}

.story-with-image.reverse > * {
  direction: ltr;
}

/* Image + caption wrapper — always travel together in the grid */
.story-image-col {
  display: flex;
  flex-direction: column;
  gap: 8px;                           /* tight gap between image and its caption */
}

/* Image container — smaller and less tall */
.story-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;                  /* was 4/5 — moderately portrait, less vertical space */
  width: 100%;
  background: var(--bg-card);
}

.story-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 160, 191, 0.05), rgba(212, 160, 160, 0.03));
  overflow: hidden;
}

.story-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-image-wrapper:hover .story-image-placeholder img {
  transform: scale(1.04);
}

/* Caption — now inside .story-image-col, directly below the image */
.story-image-caption {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-left: 2px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ─── TEXT BESIDE IMAGE ─────────────────────── */
.story-side-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding-top: 0.5rem;               /* subtle top offset so text feels centered with image */
}

.story-side-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.story-side-text p {
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 0.85rem;
}

.story-side-text p:last-child {
  margin-bottom: 0;
}

.story-side-text .highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.story-side-text .accent {
  color: var(--accent);
  font-style: italic;
}

/* ─── CLOSING ───────────────────────────────── */
.about-closing {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);  /* was --space-2xl */
  border-top: 1px solid var(--border);
  margin-top: var(--space-md);                  /* was --space-xl */
  position: relative;
}

/* Soft glow behind the closing statement */
.about-closing::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 120px;
  background: radial-gradient(ellipse at center,
    rgba(232, 160, 191, 0.1) 0%,
    transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.about-closing p {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.82;
  max-width: 560px;
  margin: 0 auto 0.85rem;
  position: relative;
  z-index: 1;
}

/* The main statement */
.about-closing .closing-bold {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
  line-height: 1.15;
}

.about-closing .mic-drop {
  font-size: 2rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .story-with-image {
    grid-template-columns: 260px 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .story-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
  }

  .story-with-image.reverse {
    direction: ltr;
  }

  .story-image-wrapper {
    aspect-ratio: 4/3;
    max-height: 260px;
  }

  .story-image-col {
    gap: 6px;
  }
}
