/* Continuation of the approved desktop, light-mode portfolio. */
.personal-chapter,
.experience-chapter,
.contact-chapter,
.portfolio-footer {
  min-width: 70.125rem;
  color: var(--portfolio-ink, #101216);
  background: var(--selected-work-surface);
}

.chapter-container {
  position: relative;
  width: 60.75rem;
  margin-inline: auto;
}

.chapter-kicker {
  margin: 0 0 1.35rem;
  color: var(--portfolio-muted, #687386);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-reveal {
  transition: opacity 700ms var(--ease-out), transform 850ms var(--ease-out);
}

.chapter-reveal.can-reveal {
  opacity: 0;
  transform: translate3d(0, 1.2rem, 0);
}

.chapter-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.personal-chapter {
  padding-block: 5rem 3rem;
}

.personal-chapter .chapter-container {
  min-height: 31rem;
}

.personal-heading {
  max-width: 48rem;
  margin: 0;
  font-size: 2.875rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.07;
}

.personal-heading .personal-accent {
  color: var(--orange);
}

.personal-copy {
  width: 34rem;
  margin-top: 2rem;
  color: var(--portfolio-body, #505b6c);
  font-size: 1.15rem;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.personal-copy p {
  margin: 0 0 1.1rem;
}

.personal-copy strong {
  color: var(--portfolio-ink, #101216);
  font-weight: 600;
}

.personal-signoff {
  margin-top: 2rem;
  color: var(--portfolio-ink, #101216);
  font-size: 1.5rem;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  transform: rotate(-5deg);
  transform-origin: left center;
}

.personal-portrait {
  position: absolute;
  right: -0.5rem;
  top: 6rem;
  width: 22rem;
  margin: 0;
  pointer-events: none;
}

.personal-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1rem 1.6rem rgb(44 48 59 / 6%));
}

.personal-note {
  position: absolute;
  right: 1.4rem;
  bottom: -4rem;
  color: var(--portfolio-muted, #687386);
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: center;
  transform: rotate(-7deg);
}

.personal-note::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 0.55rem auto 0;
  border-radius: 50%;
  background: var(--portfolio-purple, #7c4dff);
  transform: rotate(-5deg);
}

.experience-chapter {
  padding-block: 5rem 5rem;
}

.experience-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.experience-header h2 {
  margin: 0;
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.experience-header .chapter-kicker {
  margin: 0;
}

.experience-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-entry {
  position: relative;
  display: grid;
  grid-template-columns: 8.75rem 19rem 1fr;
  gap: 2rem;
  align-items: start;
  min-height: 8rem;
  padding-left: 2.5rem;
}

.experience-entry:last-child {
  min-height: 0;
}

.experience-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.045rem;
  width: 1px;
  height: 100%;
  background: #dde0e6;
}

.experience-entry::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0.72rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.35rem var(--selected-work-surface);
}

.experience-entry + .experience-entry::before {
  background: var(--portfolio-purple, #7c4dff);
}

.experience-period {
  margin: 0;
  padding-top: 0.65rem;
  color: var(--portfolio-muted, #687386);
  font-size: 0.85rem;
  line-height: 1;
}

.experience-company h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.experience-company p {
  margin: 0.65rem 0 0;
  color: var(--portfolio-body, #505b6c);
  font-size: 0.95rem;
  line-height: 1.5;
}

.experience-work {
  margin: 0.38rem 0 0;
  color: var(--portfolio-body, #505b6c);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-chapter {
  padding-block: 4.5rem 3.5rem;
  isolation: isolate;
}

.contact-chapter .chapter-container {
  min-height: 27rem;
  padding-top: 0;
  text-align: center;
}

.contact-heading {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  font-size: 4.15rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.contact-heading span {
  color: #5d874a;
}

.contact-copy {
  position: relative;
  z-index: 2;
  margin: 1.65rem auto 2rem;
  color: var(--portfolio-body, #505b6c);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-destination {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--portfolio-ink, #101216);
  border-bottom: 2px solid var(--orange);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-destination[href] {
  transition: color 180ms ease, gap 180ms ease;
}

.contact-destination[href]:hover {
  gap: 1.4rem;
  color: var(--orange);
}

.contact-destination[hidden] {
  display: none;
}

.contact-pending {
  position: relative;
  z-index: 2;
  display: block;
  width: max-content;
  margin: 2.25rem auto 0;
  color: var(--portfolio-muted, #687386);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-pending[hidden] {
  display: none;
}

.contact-character {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  bottom: -0.35rem;
  width: 11.5rem;
  height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(0 1rem 1.6rem rgb(44 48 59 / 6%));
  pointer-events: none;
}

.portfolio-footer {
  padding-block: 1.8rem 2rem;
}

.portfolio-footer .chapter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-signature {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--portfolio-ink, #101216);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.footer-signature::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--orange);
}

.footer-thought {
  margin: 0 0 0 auto;
  color: var(--portfolio-muted, #687386);
  font-size: 0.78rem;
}

.footer-top {
  color: var(--portfolio-ink, #101216);
  font-size: 0.85rem;
  padding: 0.65rem 0.1rem;
  text-decoration: none;
}

.footer-top span {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 180ms ease;
}

.footer-top:hover span {
  transform: translateY(-3px);
}

.personal-chapter .is-revealed.is-motion-active .personal-portrait-image {
  animation: personal-note-float 9s ease-in-out infinite;
}

@keyframes personal-note-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .personal-chapter .chapter-reveal,
  .experience-chapter .chapter-reveal,
  .contact-chapter .chapter-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .personal-portrait-image,
  .footer-top span,
  .contact-destination[href] {
    animation: none !important;
    transition: none !important;
  }
}
