/* ═══════════════════════════════════════════
   ABOUT-STYLE.CSS
   Companion to style.css
═══════════════════════════════════════════ */

/* ── Page wrapper ── */
.about-main {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 140px;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  position: relative;
  z-index: 1;
}

/* ── Page header ── */
.about-header {
  margin-bottom: 80px;
}
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-eyebrow::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.about-title-accent {
  color: var(--accent);
}
.about-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ── Intro block with photo ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
  padding-bottom: 80px;
}
.about-intro-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-intro-text p:last-child { margin-bottom: 0; }

.about-intro-photo {
  position: relative;
  flex-shrink: 0;
}
.about-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.08) saturate(0.88) brightness(1.03);
  display: block;
  transition: transform 0.5s ease;
}
.about-photo-frame::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-radius: 0 var(--radius-md) 0 0;
  pointer-events: none;
}
.about-photo-frame:hover img {
  transform: scale(1.03);
}

.about-photo-caption {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.about-border-photo {
  margin-bottom: 80px;
}
.about-border-frame {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.about-border-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s ease;
}
.about-border-photo:hover img {
    transform: scale(1.03);
}
.about-border-caption {
    margin-top: 10px;
    padding-left: 15px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
    text-align: left;
}


/* ── Section divider ── */
.about-section {
  margin-bottom: 72px;
  padding-bottom: 72px;
}
.about-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.about-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.about-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}
.about-section-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-section-body p:last-child { margin-bottom: 0; }

/* ── Hobby cards ── */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.hobby-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.hobby-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hobby-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.hobby-card-body {
  display: flex;
  flex-direction: column;
}
.hobby-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hobby-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Quote block ── */
.about-quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
}
.about-quote p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

/* ── CV download card ── */
.cv-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 60px;
  width: 100%;
}
.cv-callout {
  position: absolute;
  top: -35px;
  right: 0;
  background: var(--accent);
  color: #0F1923;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
}
.cv-callout::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 20px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--accent);
}
.cv-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  min-width: 280px;
}
.cv-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cv-card-icon {
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.cv-card-icon svg { width: 18px; height: 18px; }
.cv-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cv-card-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── Robotic arm canvas ── */
#arm-canvas {
  position: fixed;
  bottom: 0;
  right: 0;      
  width: 360px;       
  height: 340px;     
  z-index: 50;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .about-main { padding-left: 20px; padding-right: 20px; }
  .about-intro { grid-template-columns: 1fr; }
  .about-intro-photo { width: 160px; }
  .hobby-grid { grid-template-columns: 1fr; }
  #arm-canvas { display: none; }
}
