.about-container {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 32px) clamp(40px, 6vw, 64px);
  gap: clamp(40px, 8vw, 100px);
}

.about-sidebar {
  width: 100%;
  text-align: left;
  margin-left: 0;
}

.headshot-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: inline-block;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  aspect-ratio: 1 / 1;
}

.headshot-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: opacity 0.4s ease;
}

.day-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

body[data-theme="day"] .night-img {
  opacity: 0;
}

body[data-theme="day"] .day-img {
  opacity: 1;
}

.about-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.about-position {
  font-size: 0.95rem;
  color: #8eff71; /* Neon green accent to match resume */
  font-weight: 700;
  margin-top: 4px;
}

.contact-list {
  padding-left: 0;
  margin-top: 24px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-list li i {
  color: #888;
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-list li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list li a:hover {
  color: #fff;
  text-decoration: underline;
}

.about-content {
  min-width: 0;
  color: #eee;
}

.about-content h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 30px;
  color: #fff;
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1.15rem;
  color: #aaa; /* Matches timeline-copy in resume */
}

.about-content a {
  color: #29a9d6;
  text-decoration: underline;
  font-weight: bold;
}

.about-content a:hover {
  color: #9aefff;
}

body[data-theme="day"] .about-content a {
  color: #0066cc;
}

body[data-theme="day"] .about-content a:hover {
  color: #004999;
}

@media (max-width: 1023px) {
  .about-container {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  /* ---- HERO CARD LAYOUT ---- */
  .about-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 70px 0 40px;
    max-width: 100%;
  }

  /* -- Sidebar becomes the hero section -- */
  .about-sidebar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* -- Full-width hero photo with landscape crop -- */
  .headshot-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
    box-shadow: none;
    position: relative;
  }

  /* Top fade — smooth transition from page bg into the photo */
  .headshot-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  body[data-theme="day"] .headshot-wrapper::before {
    height: 15%;
    background: linear-gradient(to bottom, #f5f5f7 0%, transparent 100%);
  }

  /* Bottom fade — gradient into name/content area */
  .headshot-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  body[data-theme="day"] .headshot-wrapper::after {
    background: linear-gradient(to top, #f5f5f7 0%, transparent 100%);
  }

  .headshot-wrapper img {
    object-position: center 15%;
  }

  /* -- Name + Role: right below the photo, overlapping gradient -- */
  .about-name {
    font-size: 1.6rem;
    margin-top: -48px;
    position: relative;
    z-index: 2;
  }

  .about-position {
    position: relative;
    z-index: 2;
    margin-top: 4px;
    margin-bottom: 20px;
  }

  /* -- Contact list → horizontal icon-only row -- */
  .contact-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 0 20px;
  }

  .contact-list li {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    /* Hide ALL text content */
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .contact-list li:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
  }

  /* ALL icons: absolutely centered via transform */
  .contact-list li i,
  .contact-list li a i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.05rem;
    width: auto;
    text-indent: 0;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
  }

  .contact-list li:hover i,
  .contact-list li:hover a i {
    color: #fff;
  }

  /* Links fill entire circle as tap target */
  .contact-list li a {
    position: absolute;
    inset: 0;
    font-size: 0;
    color: transparent;
    text-indent: -9999px;
    text-decoration: none;
  }

  /* -- Bio content section -- */
  .about-content {
    padding: 28px 22px 0;
  }

  .about-content h1 {
    text-align: center;
    font-size: clamp(2rem, 7vw, 2.8rem);
    margin-bottom: 20px;
  }

  .about-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  /* ---- Day theme overrides for hero card ---- */
  body[data-theme="day"] .contact-list li {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
  }

  body[data-theme="day"] .contact-list li:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
  }

  body[data-theme="day"] .contact-list li i,
  body[data-theme="day"] .contact-list li a i {
    color: rgba(0, 0, 0, 0.45);
  }

  body[data-theme="day"] .contact-list li:hover i,
  body[data-theme="day"] .contact-list li:hover a i {
    color: #1d1d1f;
  }

  body[data-theme="day"] .about-name {
    color: #1d1d1f;
  }
}
