#about, #experience, #end { position: relative; isolation: isolate; }
#about::before, #experience::after, #end::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 50%;
  height: clamp(42px, 8vw, 110px);
  width: 1px;
  background: linear-gradient(transparent, #ab392a89, transparent);
  pointer-events: none;
}
#experience::after { inset: auto auto 0 50%; z-index: -2; }
.story-about, .story-experience { padding-block: clamp(95px, 11vw, 180px); }
.story-heading h2 {
  margin-block: .14em .06em;
  font: 600 clamp(3.1rem, 7.65vw, 8.35rem)/.89 var(--serif);
  letter-spacing: -.058em;
  text-wrap: balance;
}
.story-heading h2 em { color: #d78270; font-weight: 500; }
.story-subtitle { color: #cfaaa0; font: italic 500 clamp(1.25rem, 1rem + .9vw, 2rem)/1.3 var(--serif); }
.story-experience__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 8vw, 135px);
  margin-block-start: clamp(36px, 5.4vw, 84px);
}
.portrait-frame {
  position: relative;
  width: min(100%, 305px);
  border: 1px solid #552a26;
  box-shadow: 0 12px 34px #07010382;
}
.portrait-frame img { display: block; width: 100%; max-height: 360px; height: auto; object-fit: contain; }
.portrait-placeholder {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.13;
  overflow: hidden;
  background: url('../assets/grain.png'), radial-gradient(ellipse at 50% 51%, #3b1012 0, #1b0809 61%, #0f0505 100%);
}
.portrait-orbit { position: absolute; z-index: -1; inset: 11%; border: 1px solid #9b534545; border-radius: 50% 50% 2px 2px; }
.portrait-initials { color: #c69b8c; font: 500 clamp(3.6rem, 7vw, 7rem)/1 var(--serif); letter-spacing: -.1em; padding-right: .1em; }
.portrait-initials span { color: #b85038; font-size: .48em; margin: 0 .26em 0 .38em; }
.story-bio h3 { margin: .18em 0 .38em; font: 600 clamp(2.55rem, 4.4vw, 5.25rem)/.98 var(--serif); letter-spacing: -.035em; }
.story-copy { color: #cbb4a8; font-size: clamp(.89rem, .82rem + .23vw, 1.06rem); line-height: 1.8; max-width: 57ch; }
.story-copy + .story-copy { margin-block-start: .8rem; }
.story-experience { border-top: 1px solid var(--rule); }
.story-experience__layout { align-items: start; }
.story-label { margin-block-end: 1.15rem; }
.story-timeline { --timeline-inset: clamp(1.2rem, 2.5vw, 2.15rem); position: relative; padding: 0 0 0 var(--timeline-inset); list-style: none; }
.story-timeline::before, .story-timeline::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 1px; background: #6b2925; }
.story-timeline::after {
  background: linear-gradient(#91332a 10%, #e76b52);
  box-shadow: 0 0 8px #b84230c0;
  transform: scaleY(var(--thread-progress, 0));
  transform-origin: top;
}
.story-timeline li { position: relative; padding: .25rem 0 clamp(1.8rem, 3.5vw, 3rem); }
.story-timeline li:last-child { padding-bottom: 0; }
.story-timeline li::before {
  content: '';
  position: absolute;
  top: .57rem;
  left: calc(-1 * var(--timeline-inset) - 2px);
  width: 5px;
  height: 5px;
  background: #df5b43;
  transform: rotate(45deg);
}
.timeline-date { color: #e6a490; font-size: .77rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.timeline-company { color: #f1decf; font-size: .93rem; font-weight: 600; }
.timeline-date + .timeline-company { margin-top: .52rem; }
.story-timeline h4 { margin-block: .13em .33em; color: #d9bbaf; font: 500 clamp(1.5rem, 2.2vw, 2.4rem)/1 var(--serif); text-wrap: balance; }
.story-timeline-empty { border-inline-start: 1px solid #6b2925; padding-inline-start: 1rem; }
.story-expertise, .story-tools { padding: 0; list-style: none; }
.story-expertise { margin-block-end: 2.5rem; }
.story-expertise li { border-top: 1px solid var(--rule); padding: .45em 0; font: 600 clamp(1.25rem, 2.1vw, 2.15rem)/1.1 var(--serif); }
.story-tools { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 1.4vw, 18px); color: var(--muted); font-size: .83rem; line-height: 1.6; }
.story-tool-icon {
  display: block;
  width: clamp(42px, 5vw, 62px);
  height: auto;
  border-radius: 20%;
  box-shadow: 0 7px 18px #0007;
}
#end { text-align: center; background: radial-gradient(ellipse at 50% 0, #2507089e, transparent 57%), linear-gradient(transparent, #050102 91%); }
.story-end { padding-block: clamp(120px, 17vw, 230px) 2rem; }
.story-end h2 { font: 600 clamp(4.3rem, 14vw, 14.5rem)/.91 var(--serif); letter-spacing: -.06em; text-transform: uppercase; }
.story-end .story-subtitle { margin-block: .65rem 1.5rem; }
.story-contact { margin-block: 1.7rem 2rem; }
.story-contact address { margin-top: .65rem; font-style: normal; }
.story-contact ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.story-contact a { color: var(--bone); text-underline-offset: .22em; overflow-wrap: anywhere; }
.story-contact a:hover { color: #f3aa98; }
.story-end__back { color: #e78f7a; }
.story-end__back span { font-size: 1rem; }
.story-end__credit { margin-block-start: clamp(54px, 8vw, 110px); border-top: 1px solid var(--rule); padding-top: 1.5rem; color: var(--muted); font-size: .75rem; }
@media (max-width: 680px) {
  .story-experience__layout { grid-template-columns: minmax(0, 1fr); }
  .story-heading h2 { font-size: clamp(3rem, 11.1vw, 5.5rem); }
  .story-toolkit { margin-top: 1rem; }
}

:where(html[data-motion="full"]) .has-reveals .story-timeline li:not(.is-revealed) { transform: translateY(6px); }
