@charset "UTF-8";

/* Page sections: hero, about, skills, timelines, projects, contact and footer.
   Tokens, base elements, header and shared components live in styles.css. */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: calc(100svh - var(--header-space));
  padding-bottom: 5rem;
}

.hero-art {
  flex: 0 0 44%;
  max-width: 600px;
  align-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 32%, rgba(182, 62, 150, 0.2), transparent 55%),
    radial-gradient(circle at 72% 70%, rgba(88, 230, 217, 0.24), transparent 52%);
}

.hero-copy { display: flex; flex: 1 1 50%; flex-direction: column; align-items: flex-start; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.75rem, 4.3vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero-title.is-intro { --base-delay: 1s; }
.title-line { display: block; }

.hero-role { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 700; }
.hero-intro { max-width: 36rem; margin-top: 0.85rem; font-size: 1rem; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.75rem;
  color: var(--fg-soft);
  font-size: 0.9375rem;
}
.hero-meta svg { width: 1.1rem; height: 1.1rem; }
.meta-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.hire-me {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 12rem;
  height: 12rem;
}
.circular-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--fg);
  font-size: 14.5px;
  font-weight: 700;
}
/* Rotate the text inside the SVG so the spinning square never grows its layout box. */
.circular-text text { transform-box: view-box; transform-origin: center; animation: spin 9s linear infinite; }
.hire-me-button {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  padding: 0.5rem;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.hire-me:hover .hire-me-button { background: var(--bg); color: var(--fg); }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-bulb { position: absolute; right: 2rem; bottom: 6.5rem; width: 6rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4rem;
  align-items: start;
}

.bio { display: flex; grid-column: span 3; flex-direction: column; align-items: flex-start; gap: 1rem; }
.bio-title { color: var(--fg-soft); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; }

.frame { --card-radius: 1rem; --card-border: 2px; grid-column: span 3; padding: 2rem; }
.frame::before { width: 102%; }
.frame-art { overflow: hidden; border-radius: 0.9rem; }

.stats {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 2.5rem;
}
.stat { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.stat-number { font-size: clamp(3.25rem, 5.5vw, 4.5rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--fg-soft); font-size: 1.25rem; font-weight: 500; }

/* ==========================================================================
   Skills — radial cloud (reference "Skills" section)
   ========================================================================== */
.skills-cloud {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}
.skill-core {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 0 0.6rem var(--bg);
  font-size: 1.6rem;
  font-weight: 700;
}
.skill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

.skill {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  white-space: nowrap;
  transition: scale 0.2s ease;
}
.skill:hover { scale: 1.06; }
.skill[data-group='llm'] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.skill[data-group='delivery'] { background: var(--bg); color: var(--fg); }

.js .skills-cloud {
  display: block;
  height: clamp(36rem, 92vh, 50rem);
  border-radius: 50%;
  background: var(--circular);
  container-type: size;
}
.js .skill-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.js .skill-list { display: block; margin: 0; }
.js .skill {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    transform 1.3s var(--ease-out) calc(var(--i, 0) * 45ms),
    opacity 0.5s ease calc(var(--i, 0) * 45ms),
    scale 0.2s ease;
}
.js .skills-cloud.is-visible .skill {
  opacity: 1;
  transform: translate(calc(-50% + var(--x, 0) * 1cqw), calc(-50% + var(--y, 0) * 1cqh));
}

.skills-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin-top: 2.5rem;
  font-weight: 600;
}
.skills-legend li { display: inline-flex; align-items: center; gap: 0.6rem; }
.swatch { width: 1.1rem; height: 1.1rem; border: 2px solid var(--fg); border-radius: 50%; background: var(--fg); }
.skills-legend [data-group='llm'] .swatch { border-color: var(--primary); background: var(--primary); }
.skills-legend [data-group='delivery'] .swatch { background: var(--bg); }

/* ==========================================================================
   Experience & education timelines (reference: scroll-drawn line + LiIcon)
   ========================================================================== */
.timeline { position: relative; width: 75%; margin-inline: auto; }
.timeline-line {
  position: absolute;
  top: 0;
  left: 2.25rem;
  width: 4px;
  height: 100%;
  background: var(--fg);
  transform: scaleY(var(--progress, 1));
  transform-origin: top;
}
.js .timeline-line { transform: scaleY(var(--progress, 0)); }

.timeline-list { display: flex; flex-direction: column; gap: 4rem; margin-left: 1rem; }
.timeline-item { width: 64%; margin-inline: auto; }
.timeline-icon { position: absolute; left: 0; width: 75px; height: 75px; }

.timeline-body h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.at { color: var(--primary); white-space: nowrap; }
.timeline-meta { margin-top: 0.3rem; color: var(--fg-soft); font-weight: 500; }
.timeline-desc { margin-top: 0.5rem; }

.education-title { margin-top: 9rem; margin-bottom: 5rem; }

.languages { width: 75%; margin: 7rem auto 0; }
.languages-title {
  margin-bottom: 1.5rem;
  color: var(--fg-soft);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.language-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.language-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.25rem 1rem;
  border: 2px solid var(--fg);
  border-radius: 1rem;
  box-shadow: 0.45rem 0.45rem 0 var(--fg);
  text-align: center;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}
.language-list li:hover { transform: translate(-3px, -3px); box-shadow: 0.7rem 0.7rem 0 var(--primary); }
.language-name { font-size: 1.25rem; font-weight: 700; }
.language-level { color: var(--fg-soft); }

/* ==========================================================================
   Projects (reference FeaturedProject + Project cards)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8rem 6rem;
}

.project-cover { overflow: hidden; border-radius: 0.6rem; }
.project-cover svg { transition: transform 0.45s var(--ease-out); }
.project-cover:hover svg { transform: scale(1.05); }

.featured-project {
  --card-radius: 1.5rem;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  align-items: center;
  padding: 3rem;
}
.featured-project::after { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; }
.featured-body .tag-list { margin-top: 1.25rem; }
.featured-project .project-details {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 3rem;
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--fg-faint);
}
.featured-project .project-footnote { grid-column: 1 / -1; margin-top: -1rem; }

.project-kicker { color: var(--primary); font-size: 1.25rem; font-weight: 500; }
.project-org { margin-top: 0.15rem; color: var(--fg-soft); font-size: 0.9375rem; font-weight: 600; }
.project-title { margin: 0.5rem 0; font-size: 2.25rem; font-weight: 700; line-height: 1.15; white-space: pre-line; }
.project-summary { font-weight: 500; }

.project-details { display: grid; gap: 0.9rem; width: 100%; margin-top: 1.25rem; }
.detail dt { font-size: 1.125rem; font-weight: 700; }
.detail dd { margin-top: 0.3rem; color: var(--fg-soft); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.tag-list li {
  padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
}
.project-footnote { margin-top: 1rem; color: var(--fg-soft); font-size: 0.8125rem; }

.project-card {
  --card-radius: 1rem;
  display: flex;
  grid-column: span 6;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}
.project-card::before { border-radius: 2rem; }
.project-card .project-cover { width: 100%; margin-bottom: 1.25rem; }
.project-card .project-kicker { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.project-year { color: var(--fg-soft); }
.project-card .project-title { margin: 0.25rem 0 0; font-size: 1.875rem; }
.project-subtitle { font-weight: 600; }
.project-desc { margin: 0.5rem 0 1rem; color: var(--fg-soft); }

.projects-note { margin-top: 5rem; color: var(--fg-soft); font-size: 0.9375rem; text-align: center; }

/* ==========================================================================
   Contact & footer
   ========================================================================== */
.contact { padding-bottom: 9rem; }
.contact-card {
  --card-radius: 1.5rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem;
}
.contact-title { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700; line-height: 1.12; white-space: pre-line; }
.contact-lede { max-width: 34rem; margin-top: 1.5rem; color: var(--fg-soft); font-size: 1.125rem; }

.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.contact-plane { width: 100%; max-width: 17rem; margin-bottom: 0.5rem; }
.contact-email {
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--primary); }
.contact-phone { color: var(--fg-soft); font-size: 1.125rem; font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1rem; }

.site-footer { border-top: 2px solid var(--fg); font-size: 1.125rem; font-weight: 500; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .hero { gap: 3rem; }
  .about-grid { gap: 3rem; }
  .bio { grid-column: span 4; }
  .frame { grid-column: span 4; }
  .stats { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-around; }
  .stat { align-items: center; text-align: center; }
  .projects-grid { column-gap: 3rem; }
  .featured-project { padding: 2.5rem; }
  .timeline, .languages { width: 90%; }
  .timeline-item { width: 70%; }
}

@media (max-width: 1023px) {
  .hero { flex-direction: column; justify-content: center; gap: 2rem; padding-top: 1rem; }
  .hero-art { flex: none; width: min(100%, 24rem); }
  .hero-copy { align-items: center; text-align: center; }
  .status-pill { display: inline-block; max-width: 100%; }
  .status-pill .pulse-dot { display: inline-block; margin-right: 0.5rem; vertical-align: 0.05em; }
  .hero-intro { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hire-me { top: 0; right: 1.5rem; bottom: auto; left: auto; width: 8.5rem; height: 8.5rem; }
  .hire-me-button { width: 4rem; height: 4rem; font-size: 0.75rem; }
  .circular-text { font-size: 15.5px; }
  .hero-bulb { display: none; }

  .about-grid { gap: 3rem 2rem; }
  .bio { grid-column: 1 / -1; order: 2; }
  .frame { grid-column: 2 / span 6; order: 1; }
  .stats { order: 3; }

  .js .skill { padding: 0.5rem 1rem; font-size: 0.875rem; }

  .timeline, .languages { width: 100%; }
  .timeline-item { width: auto; margin-left: 6rem; margin-right: 0; }

  .projects-grid { gap: 6rem 2rem; }
  .featured-project { grid-template-columns: minmax(0, 1fr); padding: 2rem; }
  .featured-project .project-details { grid-template-columns: minmax(0, 1fr); }

  .contact-card { grid-template-columns: 1fr; padding: 3rem; }
}

@media (max-width: 767px) {
  .hero { padding-bottom: 3rem; }
  .hero-art { width: min(80%, 19rem); }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .status-pill { margin-bottom: 1.25rem; font-size: 0.8125rem; }

  .frame { grid-column: 1 / -1; padding: 1.25rem; }
  .stats { gap: 1rem; }
  .stat-label { font-size: 1rem; }

  .js .skills-cloud { display: flex; height: auto; border-radius: 2rem; background: none; container-type: normal; }
  .js .skill-core { position: static; transform: none; }
  .js .skill-list { display: flex; margin-top: 2rem; }
  .js .skill { position: static; opacity: 1; transform: none; padding: 0.5rem 1rem; font-size: 0.9375rem; }
  .js .skills-cloud.is-visible .skill { transform: none; }

  .timeline-line { left: 30px; width: 2px; }
  .timeline-icon { left: -6px; width: 60px; height: 60px; }
  .timeline-item { margin-left: 4.5rem; }
  .timeline-list { margin-left: 0; gap: 3rem; }
  .timeline-body h3 { font-size: 1.25rem; }
  .at { white-space: normal; }
  .education-title { margin-top: 6rem; margin-bottom: 3.5rem; }

  .languages { margin-top: 5rem; }
  .language-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

  .projects-grid { row-gap: 4rem; }
  .project-card { grid-column: 1 / -1; }
  .project-title,
  .project-card .project-title { font-size: 1.75rem; }
  .project-title, .contact-title { white-space: normal; }

  .contact { padding-bottom: 7rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .contact-plane { max-width: 13rem; }

  .footer-inner { flex-direction: column; text-align: center; font-size: 1rem; }
}

@media (max-width: 479px) {
  .hire-me { display: none; }
  .featured-project { padding: 1.25rem; }
  .project-card { padding: 1.1rem; }
  .timeline-item { margin-left: 3.75rem; }
  .timeline-icon { left: -10px; }
  .timeline-line { left: 20px; }
}
