/* ==========================================================================
   THE DESCENT — SECTION 00: ABOUT (CANONICAL SECTION 2)
   Warm parchment, tactile paper grain, editorial broadside typography,
   unboxed Simple Icons brand marks with hover/focus name reveals,
   Instrument Serif italic statement and philosophy axioms,
   and bulletproof marquee animation lifecycle management.
   ========================================================================== */

#about.about-chapter {
  position: relative;
  background-color: var(--paper);
  color: var(--charcoal);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(5rem, 9vh, 8rem) 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Tactile Paper Grain Overlay (Vector fractal noise tile) */
#about.about-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.075;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

#about .container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  box-sizing: border-box;
}

/* Subtle, quiet section kicker (Natural sentence case, charcoal muted) */
.about-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: none;
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   1. EDITORIAL TWO-COLUMN INTRODUCTION
   ========================================================================== */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 7vh, 6.5rem);
}

/* Left Column: Portrait & Identity Metadata */
.about-portrait-column {
  display: flex;
  flex-direction: column;
}

/* Experimental Cutout Portrait Treatment with Offset Paper Backing */
.portrait-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.75rem;
}

.portrait-backing-card {
  position: absolute;
  inset: 0;
  transform: translate(8px, 8px);
  background: #EAE6DC;
  border: 1px solid var(--rule);
  z-index: 0;
  transition: transform 0.35s var(--ease);
}

.portrait-backing-card::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--rule);
  border-right: 1.5px solid var(--rule);
}

.portrait-media-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #FAF7F0;
  border: 1px solid var(--charcoal);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 23, 21, 0.05);
}

.portrait-frame-wrap:hover .portrait-backing-card {
  transform: translate(12px, 12px);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(106%);
  display: block;
  transition: filter 0.45s ease;
}

.portrait-frame-wrap:hover .portrait-img {
  filter: grayscale(0%) contrast(102%);
}

/* Grounded Identity Metadata Stack */
.about-meta-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  padding-top: 0.25rem;
}

.about-meta-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(23, 23, 21, 0.06);
}

.about-meta-kicker {
  font-family: var(--font-body);
  font-size: 0.74rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.about-meta-content {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--charcoal);
  margin: 0;
}

.about-meta-dim {
  color: var(--text-muted);
}

.about-meta-dim.mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* Right Column: Editorial Statement & Narrative */
.about-editorial-column {
  display: flex;
  flex-direction: column;
}

.about-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin: 0 0 1.75rem 0;
  max-width: 32ch;
  cursor: default;
}

.about-prose {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 1.4rem 0;
  max-width: 58ch;
}

.about-prose strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* Natural Focus Row (Understated, non-shouting) */
.about-focus-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-top: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-focus-item {
  color: var(--charcoal);
  display: inline-flex;
  align-items: baseline;
}

.about-focus-sep {
  color: var(--rule);
  user-select: none;
}

/* ==========================================================================
   2. CONTINUOUS HORIZONTAL TECHNOLOGY MARQUEE (UNBOXED SIMPLE ICONS STREAM)
   - Genuine Simple Icons brand marks rendered 35-45% larger (38px vs 28px)
   - Normal state: ONLY monochrome SVG marks gliding with breathing room
   - Hover / Focus: Reveals tech name underneath in JetBrains Mono oxblood
   - Bugfix: Uses :has(:focus-visible) to prevent mouse click lingering pause
   ========================================================================== */
.tech-marquee-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: clamp(3rem, 5vh, 4.5rem);
  margin-bottom: clamp(4rem, 7vh, 5.5rem);
  padding: 1.5rem 0 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(234, 230, 220, 0.4);
  box-sizing: border-box;
}

.tech-marquee-viewport {
  overflow: hidden;
  user-select: none;
  width: 100%;
  padding: 0.5rem 0 0.75rem 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: techMarqueeScroll 48s linear infinite;
  will-change: transform;
}

/* Lifecycle-safe pause: hover pauses; keyboard focus pauses; mouse click does NOT pause indefinitely */
.tech-marquee-viewport:hover .tech-marquee-track,
.tech-marquee-viewport:has(:focus-visible) .tech-marquee-track {
  animation-play-state: paused;
}

@keyframes techMarqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.tech-item-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Unboxed Icon Link with Floating Name Reveal */
.tech-item-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.6rem;
  background: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
  color: var(--charcoal);
  transition: transform 0.22s var(--ease);
  cursor: pointer;
  min-height: 52px;
  box-sizing: border-box;
}

/* 35-45% larger dimensions (38px vs 28px) with optical balancing */
.tech-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease, fill 0.2s ease;
  display: block;
}

.tech-label {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 50%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-transform: none;
}

.tech-item-link:hover,
.tech-item-link:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.tech-item-link:hover .tech-icon,
.tech-item-link:focus-visible .tech-icon {
  opacity: 1;
  fill: var(--charcoal);
  transform: scale(1.08);
}

.tech-item-link:hover .tech-label,
.tech-item-link:focus-visible .tech-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tech-item-link:focus-visible {
  outline: 1px dashed var(--charcoal);
  outline-offset: 4px;
}

/* ==========================================================================
   3. PERSONAL PERSPECTIVES (LIFE OUTSIDE SOFTWARE)
   - Instrument Serif italic headings leading each personal story
   - Disciplined body copy with ample breathing room
   - Subtle hairline top rules
   - NO card containers, NO background boxes, NO generic tags
   ========================================================================== */
.about-philosophy-section {
  margin-bottom: clamp(4.5rem, 8vh, 6.5rem);
}

.section-subhead-row {
  margin-bottom: clamp(2rem, 4vh, 3rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-subhead-title {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--carbon, #171715);
  margin: 0;
  text-transform: none;
}

.section-subhead-label {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #77736D);
}

.perspectives-editorial-grid,
.philosophy-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.25rem) clamp(2.5rem, 5.5vw, 4.5rem);
  align-items: start;
  margin-bottom: 0;
}

.perspectives-entry,
.philosophy-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: clamp(1.5rem, 2.5vh, 2rem);
  border-top: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
  will-change: transform, opacity;
}

.perspectives-kicker {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #77736D);
  margin-bottom: 0.85rem;
  display: block;
}

.perspectives-title,
.philosophy-title {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 2.3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--carbon, #171715);
  margin: 0 0 1.15rem 0;
}

.perspectives-desc,
.philosophy-desc {
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--charcoal, #2B2A27);
  margin: 0;
  max-width: 52ch;
}

/* ==========================================================================
   4. CURRENTLY EXPLORING (SUBTLE FOOTER HORIZON)
   - Natural body typography
   - Minimal metadata, no excessive red accents
   - Natural sentence case
   ========================================================================== */
.about-exploring-section {
  padding-top: clamp(2.5rem, 4.5vh, 3.5rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

.exploring-header {
  display: flex;
  flex-direction: column;
}

.exploring-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin: 0;
  text-transform: none;
}

.exploring-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.exploring-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.exploring-item::before {
  content: "—";
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.exploring-item strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (DOWN TO 320PX)
   ========================================================================== */
@media (max-width: 900px) {
  .perspectives-editorial-grid,
  .philosophy-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 840px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portrait-frame-wrap {
    max-width: 260px;
  }

  .about-exploring-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .tech-marquee-section {
    padding: 1.5rem 0 2rem 0;
  }

  .tech-item-link {
    padding: 0.6rem 1.6rem;
    min-height: 44px;
  }

  .tech-icon {
    width: 30px;
    height: 30px;
  }

  .tech-label {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   6. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none !important;
  }

  .tech-marquee-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .portrait-backing-card,
  .portrait-media-card,
  .tech-item-link {
    transition: none !important;
    transform: none !important;
  }
}
