.section {
  padding: 78px 0;
}

.section-inner {
  width: min(1100px, 88vw);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-family: "Cardo", serif;
  font-size: 38px;
  margin: 0 0 8px;
}

.section-subtitle {
  margin: 0;
  color: rgba(255,255,255,0.72);
}

/* HERO */
.hero {
  padding: 52px 0 32px;
}

.hero-inner {
  width: min(1200px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.14em;
  font-size: 12px;
}

.hero-name {
  font-family: "Cardo", serif;
  font-size: 76px;
  line-height: 0.95;
  margin: 0 0 10px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 54px;
  color: rgba(255,255,255,0.28);
  font-weight: 700;
}

.hero-blurb {
  max-width: 620px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0 0 18px;
}

.intro-link-purple {
  color: var(--accent);
  text-decoration: none;
}

.intro-link-purple:hover {
  text-decoration: underline;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.hero-orb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.hero-orb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 26px;
  align-items: center;
}

.about-photo {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

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

.about-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  padding: 22px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

.about-card p { margin: 0 0 14px; }

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--accent);
  opacity: 0.75;
}

.corner-tl {
  top: -8px; left: -8px;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  border-radius: 8px 0 0 0;
}

.corner-br {
  bottom: -8px; right: -8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 8px 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chip {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.03);
}

/* EXPERIENCE */
.timeline {
  display: grid;
  gap: 18px;
}

.timeline-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.03);
}

.timeline-top h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.muted {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.6);
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.accent { color: var(--accent); }

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.p-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  padding: 18px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.p-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.10), 0 18px 50px rgba(0,0,0,0.45);
}

.p-top {
  display: flex;
  align-items: center;
  justify-content: end;
  margin-bottom: 12px;
}

.p-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
}

.p-links {
  display: flex;
  gap: 10px;
}

.p-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: inline-flex;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

.p-links a:hover {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.22);
}

.p-title {
  font-family: "Cardo", serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.p-desc {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.p-tags {
  margin-top: auto;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  font-size: 12px;
}

.projects-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* CONTACT */
.contact-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  padding: 26px;
  text-align: center;
}

.contact-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* responsive */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-name { font-size: 60px; }
  .hero-title { font-size: 40px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------
   Extra-tight layout for small phones 
-------------------------------------- */
@media (max-width: 520px){
  .section{ padding: 46px 0; } /* was 78px */
  .section-inner{ width: min(1100px, 92vw); }

  .hero{ padding: 42px 0 22px; }
  .hero-inner{ width: min(1200px, 92vw); gap: 22px; }

  .hero-name{ font-size: 48px; }
  .hero-title{ font-size: 30px; }

  .hero-cta{ flex-direction: column; align-items: stretch; }
  .hero-cta .btn{ width: 100%; }

  .about-card{ padding: 18px; }

  .contact-actions{ flex-direction: column; align-items: stretch; }
  .contact-actions .btn{ width: 100%; justify-content: center; }
}
