/* ============================================================================
   ANANYA SHANKAR — PORTFOLIO  |  ABOUT PAGE STYLES
   Extends css/styles.css with page-specific layout for about.html.
   Normal scroll (no full-page sections) — IntersectionObserver handles reveals.
   ----------------------------------------------------------------------------
   1. About Hero
   2. CTA Band
   3. Beyond Design
   4. Professional Summary + CV Layout
   5. Responsive
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. ABOUT HERO
-------------------------------------------------------------------------- */
.about-hero {
  padding-top: clamp(80px, 10vw, 120px);
  background: var(--mint);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-hero__hi {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  /* color: var(--muted); */
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.about-hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  letter-spacing: -.03em;
  line-height: .96;
  font-weight: 800;
  color: var(--ink);
}

.about-hero__bio {
  margin-top: 32px;
  /* color: var(--muted); */
  font-size: 1.06rem;
  line-height: 1.7;
}

.about-hero__bio strong {
  color: var(--ink);
  font-weight: 700;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Portrait */
.about-hero__portrait {
  position: relative;
  border-radius: 300px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  align-self: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.about-hero__portrait:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 96px rgba(22, 24, 29, .13);
}

.about-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   2. CTA BAND  (gold strip)
-------------------------------------------------------------------------- */
.about-cta-band {
  background: #c49040;
  padding-block: clamp(28px, 4vw, 44px);
}

.about-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}

.about-cta-band__text {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  min-width: 200px;
}

.about-cta-band__btn {
  background: var(--ink);
  color: #fff;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. BEYOND DESIGN
-------------------------------------------------------------------------- */
/* Single continuous gold-light panel wrapping all three beyond-sections */
.beyond__panel {
  background: rgba(237, 228, 207, 0.75); /* --gold-light at 75% opacity */
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}
/* Main full-width intro card */
.beyond__main {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.beyond__main-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 20px;
}

.beyond__main-text {
  /* color: var(--muted); */
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 860px;
}

.beyond__main-text strong {
  color: var(--ink);
  font-weight: 700;
}

/* 2-column grid */
.beyond__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.beyond__card {
  background: var(--card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.beyond__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.beyond__card-media {
  overflow: hidden;
}

.beyond__card-media img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.beyond__card:hover .beyond__card-media img {
  transform: scale(1.03);
}

.beyond__card-body {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.beyond__card-title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.beyond__card-text {
  /* color: var(--muted); */
  font-size: .96rem;
  line-height: 1.7;
}

.beyond__card-text strong {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. PROFESSIONAL SUMMARY + CV LAYOUT
-------------------------------------------------------------------------- */
.cv-section { background: var(--bg); }

/* Summary panel — dark navy, white text */
.cv-summary {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.cv-summary__para {
  font-size: clamp(.96rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .88);
}

.cv-summary__para strong {
  color: #fff;
  font-weight: 700;
}

/* CV 2-col layout */
.cv-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Column headings */
.cv-col-heading {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--hairline);
}

/* ── Timeline (Work Experience) ── */
.cv-left { display: flex; flex-direction: column; }
.cv-left .sidebar-block { width: 100%; }

.timeline-entry {
  padding-bottom: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.timeline-entry:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.timeline-entry__header {
  margin-bottom: 16px;
}

.timeline-entry__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-entry__date {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-entry__location {
  font-size: .8rem;
  font-weight: 500;
  /* color: var(--muted); */
}

.timeline-entry__title {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.timeline-entry__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.timeline-entry__company {
  font-weight: 500;
  /* color: var(--muted); */
  font-size: .92em;
}

.timeline-entry__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-entry__bullets li {
  font-size: .93rem;
  font-weight: 500;
  /* color: var(--muted); */
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.timeline-entry__bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── Career Timeline ── */
.career-timeline {
  display: flex;
  flex-direction: column;
}

.tl-entry {
  display: grid;
  grid-template-columns: 110px 30px 1fr;
  padding-bottom: clamp(28px, 4vw, 40px);
}

.tl-entry:last-child {
  padding-bottom: 0;
}

/* Date column */
.tl-entry__date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 12px;
  padding-top: 3px;
  gap: 3px;
}

.tl-entry__date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .03em;
  text-align: right;
  line-height: 1.3;
}

.tl-entry__location {
  font-size: .72rem;
  font-weight: 500;
  text-align: right;
}

/* Track column — dot + connecting line */
.tl-entry__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tl-entry__track::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--hairline);
  bottom: calc(-1 * clamp(28px, 4vw, 40px));
}

.tl-entry:last-child .tl-entry__track::after {
  display: none;
}

.tl-entry__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgba(58, 80, 144, .18);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

/* Content column */
.tl-entry__content {
  padding-left: 14px;
}

.tl-entry__title {
  font-size: clamp(.96rem, 1.3vw, 1.12rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tl-entry__company {
  font-weight: 500;
  font-size: .9em;
}

/* Initiatives badge + sub-list */
.tl-initiatives {
  margin-top: 18px;
}

.tl-initiatives__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
  border-left: 3px solid var(--gold);
}

/* ── Sidebar ── */
.cv-right {
  position: sticky;
  top: 90px; /* clears the sticky nav */
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 44px);
}

.sidebar-block {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.5vw, 32px);
  box-shadow: var(--shadow-sm);
}

/* Skills & Toolkit — shared grid so ALL text starts at the same column */
.skill-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 10px;
  align-items: start;
}

/* Dissolve wrapper — pill + items become direct grid children */
.skill-group {
  display: contents;
}

.skill-group__name {
  display: inline-flex;
  align-items: center;
  background: var(--mint);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  line-height: 1.4;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px; /* optical vertical alignment with text */
}

.skill-group__name::after {
  content: '';
}

.skill-group__items {
  font-size: .88rem;
  line-height: 1.7;
}

/* Toolkit */
.toolkit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toolkit-list li {
  font-size: .88rem;
  /* color: var(--muted); */
  line-height: 1.5;
}

.toolkit-list strong {
  color: var(--ink);
  font-weight: 700;
}

/* Certifications */
.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-list li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: .88rem;
  line-height: 1.6;
}

.cert-list__name {
  font-weight: 700;
  color: var(--ink);
}

.cert-list__source {
  /* color: var(--muted); */
}

/* Education */
.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.edu-list__date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.edu-list__degree {
  font-size: .92rem;
  /* color: var(--muted); */
  line-height: 1.4;
}

.edu-list__degree strong {
  color: var(--ink);
  font-weight: 700;
}

.edu-list__inst {
  font-size: .82rem;
  /* color: var(--muted); */
  font-weight: 500;
}

/* Languages */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .about-hero__inner {
    grid-template-columns: 1fr;
  }

  .about-hero__portrait {
    max-width: 420px;
    order: -1; /* portrait above text on tablet */
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  /* Compact date column on tablet */
  .tl-entry {
    grid-template-columns: 90px 26px 1fr;
  }
}

@media (max-width: 640px) {
  .about-hero__title { white-space: normal; }
  .about-hero__portrait { max-width: 100%; }

  /* On mobile, hide date column — show date above content instead */
  .tl-entry {
    grid-template-columns: 22px 1fr;
  }
  .tl-entry__date-col {
    display: none;
  }
  .tl-entry__content::before {
    content: attr(data-date);
  }

  .about-cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .beyond__grid {
    grid-template-columns: 1fr;
  }

  .timeline-entry::before {
    display: none;
  }
}
